summaryrefslogtreecommitdiff
path: root/net/lapb/lapb_in.c
diff options
context:
space:
mode:
authorIlya Dryomov <idryomov@gmail.com>2015-11-27 19:23:24 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-12-14 21:25:42 -0800
commit587de47c5adfd7a13d2f239bd7ad88a31be2b21c (patch)
tree983915eeff934a9c15dce731e4221ac8387a3c1a /net/lapb/lapb_in.c
parentcf7c570bb1a1519ed9a75b4feddc04ab72dd9856 (diff)
rbd: don't put snap_context twice in rbd_queue_workfn()
commit 70b16db86f564977df074072143284aec2cb1162 upstream. 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. Signed-off-by: Ilya Dryomov <idryomov@gmail.com> Reviewed-by: Josh Durgin <jdurgin@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions