aboutsummaryrefslogtreecommitdiff
path: root/fs/jbd2/commit.c
diff options
context:
space:
mode:
authorRussell King (Oracle) <[email protected]>2023-01-27 10:40:08 +0000
committerGreg Kroah-Hartman <[email protected]>2023-01-28 14:36:28 +0100
commit3bd747c7ea13cb145f0d84444e00df928b0842d9 (patch)
treee55b7ae8dd3191d807213c356d02025a0b636646 /fs/jbd2/commit.c
parentc151d5ed8e8fe0474bd61dce7f2076ca5916c683 (diff)
nvmem: core: initialise nvmem->id early
The error path for wp_gpio attempts to free the IDA nvmem->id, but this has yet to be assigned, so will always be zero - leaking the ID allocated by ida_alloc(). Fix this by moving the initialisation of nvmem->id earlier. Fixes: f7d8d7dcd978 ("nvmem: fix memory leak in error path") Cc: [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