aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorIlya Dryomov <[email protected]>2015-11-27 18:23:24 +0000
committerIlya Dryomov <[email protected]>2015-12-04 13:29:18 +0000
commit70b16db86f564977df074072143284aec2cb1162 (patch)
treeeb4418d39ce759952bf36e5536efbe06e94134a9 /net/unix/af_unix.c
parentLinux 4.4-rc3 (diff)
downloadkernel-70b16db86f564977df074072143284aec2cb1162.tar.gz
kernel-70b16db86f564977df074072143284aec2cb1162.zip
rbd: don't put snap_context twice in rbd_queue_workfn()
Commit 4e752f0ab0e8 ("rbd: access snapshot context and mapping size safely") moved ceph_get_snap_context() out of rbd_img_request_create() and into rbd_queue_workfn(), adding a ceph_put_snap_context() to the error path in rbd_queue_workfn(). However, rbd_img_request_create() consumes a ref on snapc, so calling ceph_put_snap_context() after a successful rbd_img_request_create() leads to an extra put. Fix it. Cc: [email protected] # 3.18+ Signed-off-by: Ilya Dryomov <[email protected]> Reviewed-by: Josh Durgin <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions