diff options
| author | Dan Carpenter <dan.carpenter@oracle.com> | 2021-03-12 10:42:11 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-03-24 10:57:00 +0100 |
| commit | 69de3027142ce96c505f3c8c1491b085d210f950 (patch) | |
| tree | 7722b8f23a98ac04d3795b1a08ccfb10b79a213e /include/linux/overflow.h | |
| parent | 60ce70aa3e42f46c649f1349e35c1e899b50d6c4 (diff) | |
scsi: lpfc: Fix some error codes in debugfs
commit 19f1bc7edf0f97186810e13a88f5b62069d89097 upstream.
If copy_from_user() or kstrtoull() fail then the correct behavior is to
return a negative error code.
Link: https://lore.kernel.org/r/YEsbU/UxYypVrC7/@mwanda
Fixes: f9bb2da11db8 ("[SCSI] lpfc 8.3.27: T10 additions for SLI4")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/overflow.h')
0 files changed, 0 insertions, 0 deletions
