diff options
author | Jia-Ju Bai <[email protected]> | 2021-03-23 19:34:05 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2021-03-28 14:55:39 +0200 |
commit | d225ef6fda7ce9ff7d28764bd1cceea2d0215e8b (patch) | |
tree | 408e64150fbfc7bf0f1a5701d56d3fbcc3adc6bd /lib/mpi/mpi-inline.h | |
parent | e611f8cd8717c8fe7d4229997e6cd029a1465253 (diff) |
base: dd: fix error return code of driver_sysfs_add()
When device_create_file() fails and returns a non-zero value,
no error return code of driver_sysfs_add() is assigned.
To fix this bug, ret is assigned with the return value of
device_create_file(), and then ret is checked.
Reported-by: TOTE Robot <[email protected]>
Signed-off-by: Jia-Ju Bai <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-inline.h')
0 files changed, 0 insertions, 0 deletions