diff options
author | Russell King (Oracle) <[email protected]> | 2023-01-27 10:40:14 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2023-01-28 14:39:11 +0100 |
commit | 0c4862b1c1465e473bc961a02765490578bf5c20 (patch) | |
tree | 9d6244bc4fe1e26ee5da07b7f9341a1ea731e294 /fs/jbd2/commit.c | |
parent | db3546d58b5a0fa581d9c9f2bdc2856fa6c5e43e (diff) |
nvmem: core: fix return value
Dan Carpenter points out that the return code was not set in commit
60c8b4aebd8e ("nvmem: core: fix cleanup after dev_set_name()"), but
this is not the only issue - we also need to zero wp_gpio to prevent
gpiod_put() being called on an error value.
Fixes: 560181d3ace6 ("nvmem: core: fix cleanup after dev_set_name()")
Cc: [email protected]
Reported-by: kernel test robot <[email protected]>
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Russell King (Oracle) <[email protected]>
Signed-off-by: Srinivas Kandagatla <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions