diff options
| author | Jia-Ju Bai <[email protected]> | 2021-03-24 02:34:05 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2021-03-28 12:55:39 +0000 |
| commit | d225ef6fda7ce9ff7d28764bd1cceea2d0215e8b (patch) | |
| tree | 408e64150fbfc7bf0f1a5701d56d3fbcc3adc6bd /drivers/base/attribute_container.c | |
| parent | driver core: Use unbound workqueue for deferred probes (diff) | |
| download | kernel-d225ef6fda7ce9ff7d28764bd1cceea2d0215e8b.tar.gz kernel-d225ef6fda7ce9ff7d28764bd1cceea2d0215e8b.zip | |
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 'drivers/base/attribute_container.c')
0 files changed, 0 insertions, 0 deletions
