aboutsummaryrefslogtreecommitdiff
path: root/drivers/rtc/rtc-wm831x.c
diff options
context:
space:
mode:
authorRashika Kheria <rashika.kheria@gmail.com>2013-11-10 22:13:53 +0530
committerBen Hutchings <ben@decadent.org.uk>2014-01-03 04:33:25 +0000
commite06c33874253cf44ae5d3484111db7b17bc09b5f (patch)
treed90c7964cf3957408ded7b1dc6e16d92bcfcd3e8 /drivers/rtc/rtc-wm831x.c
parentdccfb68c26308eb5fa3321110c9a4b51e89d67e3 (diff)
Staging: zram: Fix memory leak by refcount mismatch
commit 1b672224d128ec2570eb37572ff803cfe452b4f7 upstream. 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> Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> [bwh: Backported to 3.2: adjust filename, context] Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'drivers/rtc/rtc-wm831x.c')
0 files changed, 0 insertions, 0 deletions