Messages in this thread | | | Date | Fri, 1 Nov 2013 11:00:04 +0900 | From | Minchan Kim <> | Subject | Re: [PATCH v9 2/2] Staging: zram: Fix decrement of variable by calling bdput() |
| |
I hope subject should be "Fix memory leak by refcount mismatch"
On Thu, Oct 31, 2013 at 05:28:18PM +0530, Rashika Kheria wrote: > As suggested by 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. > > Cc: stable@vger.kernel.org > Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Other than that, Acked-by: Minchan Kim <minchan@kernel.org>
Rashika, Thanks!
-- Kind regards, Minchan Kim
| |