diff options
author | Christoph Hellwig <hch@lst.de> | 2022-08-06 10:29:55 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2022-08-10 16:05:08 +0200 |
commit | 9317d0014499182c77a03cd095e83bcfb0f53750 (patch) | |
tree | 215ab4241fb4190b343a6397e150899a0519b030 /drivers/nvme/host/hwmon.c | |
parent | 6fb271f1bc4ebc59bac0ff835c2e5197eac4b075 (diff) |
nvme-fc: fix the fc_appid_store return value
"nvme-fc: fold t fc_update_appid into fc_appid_store" accidentally
changed the userspace interface for the appid attribute, because the code
that decrements "count" to remove a trailing '\n' in the parsing results
in the decremented value being incorrectly be returned from the sysfs
write. Fix this by keeping an orig_count variable for the full length
of the write.
Fixes: c814153c83a8 ("nvme-fc: fold t fc_update_appid into fc_appid_store")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Ewan D. Milne <emilne@redhat.com>
Reviewed-by: James Smart <jsmart2021@gmail.com>
Tested-by: Muneendra Kumar M <muneendra.kumar@broadcom.com>
Diffstat (limited to 'drivers/nvme/host/hwmon.c')
0 files changed, 0 insertions, 0 deletions