aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/fpga-bridge.c
diff options
context:
space:
mode:
authorChenyuan Mi <[email protected]>2021-09-07 11:41:05 +0000
committerMike Marshall <[email protected]>2021-10-11 18:25:41 +0000
commitac2c63757f4f413980d6c676dbe1ae2941b94afa (patch)
treeb5256a5990042f6da56ad93c064742b2acb4ac50 /drivers/fpga/fpga-bridge.c
parentfs: orangefs: fix error return code of orangefs_revalidate_lookup() (diff)
downloadkernel-ac2c63757f4f413980d6c676dbe1ae2941b94afa.tar.gz
kernel-ac2c63757f4f413980d6c676dbe1ae2941b94afa.zip
orangefs: Fix sb refcount leak when allocate sb info failed.
The reference counting issue happens in one exception handling path of orangefs_mount(). When failing to allocate sb info, the function forgets to decrease the refcount of sb increased by sget(), causing a refcount leak. Fix this issue by jumping to the label "free_sb_and_op" instead of "free_op" Signed-off-by: Chenyuan Mi <[email protected]> Signed-off-by: Xiyu Yang <[email protected]> Signed-off-by: Xin Tan <[email protected]> Signed-off-by: Mike Marshall <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions