aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorTetsuo Handa <[email protected]>2025-08-24 10:27:40 +0000
committerMarc Kleine-Budde <[email protected]>2025-09-10 15:12:05 +0000
commit06e02da29f6f1a45fc07bd60c7eaf172dc21e334 (patch)
tree9938725f835c20310082420d9f622cf49dbe0b4d /fs/btrfs/dev-replace.c
parentcan: j1939: j1939_sk_bind(): call j1939_priv_put() immediately when j1939_loc... (diff)
downloadkernel-06e02da29f6f1a45fc07bd60c7eaf172dc21e334.tar.gz
kernel-06e02da29f6f1a45fc07bd60c7eaf172dc21e334.zip
can: j1939: j1939_local_ecu_get(): undo increment when j1939_local_ecu_get() fails
Since j1939_sk_bind() and j1939_sk_release() call j1939_local_ecu_put() when J1939_SOCK_BOUND was already set, but the error handling path for j1939_sk_bind() will not set J1939_SOCK_BOUND when j1939_local_ecu_get() fails, j1939_local_ecu_get() needs to undo priv->ents[sa].nusers++ when j1939_local_ecu_get() returns an error. Fixes: 9d71dd0c7009 ("can: add support of SAE J1939 protocol") Signed-off-by: Tetsuo Handa <[email protected]> Tested-by: Oleksij Rempel <[email protected]> Acked-by: Oleksij Rempel <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions