diff options
author | James Smart <jsmart2021@gmail.com> | 2017-06-01 21:07:03 -0700 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-06-12 21:37:31 -0400 |
commit | 522dceeb62ded1a7b538d2f1f61cc69a1402537d (patch) | |
tree | 3454f20ac50efff3efb0eba719c65e2b2eea4d23 /drivers/base/container.c | |
parent | 2cee7808004b33bd5dc75fccd8d145b5e208ef93 (diff) |
scsi: lpfc: Fix return value of board_mode store routine in case of online failure
On hbacmd reset failure, observing wrong string "nline" in kernel log.
On failure, non negative value (1) is returned from sysfs store
routine. It is interpreted as count by kernel and store routine is
called again with the remaining characters as input.
Fix: Return negative error code (-EIO) in case of failure.
Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/base/container.c')
0 files changed, 0 insertions, 0 deletions