aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRashika Kheria <rashika.kheria@gmail.com>2013-11-10 22:13:53 +0530
committerSimon Shields <keepcalm444@gmail.com>2016-06-12 21:19:51 +1000
commit888aed97ac127d477527dc06b5ce9259cf509e13 (patch)
tree4cff134e02dffbeea45662630b182fedddef85b0 /include
parent895ec41cfb21cb9983209689da392e41d1390efb (diff)
downloadkernel_samsung_smdk4412-888aed97ac127d477527dc06b5ce9259cf509e13.zip
kernel_samsung_smdk4412-888aed97ac127d477527dc06b5ce9259cf509e13.tar.gz
kernel_samsung_smdk4412-888aed97ac127d477527dc06b5ce9259cf509e13.tar.bz2
Staging: zram: Fix memory leak by refcount mismatch
As suggested by Minchan Kim and Jerome Marchand "The code in reset_store get the block device (bdget_disk()) but it does not put it (bdput()) when it's done using it. The usage count is therefore incremented but never decremented." This patch also puts bdput() for all error cases. Acked-by: Minchan Kim <minchan@kernel.org> Acked-by: Jerome Marchand <jmarchan@redhat.com> Cc: stable@vger.kernel.org Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions