Re: [PATCH v9 2/2] Staging: zram: Fix decrement of variable by calling bdput()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx 
> Signed-off-by: Rashika Kheria <rashika.kheria@xxxxxxxxx>

Other than that,
Acked-by: Minchan Kim <minchan@xxxxxxxxxx>


Rashika, Thanks!

-- 
Kind regards,
Minchan Kim
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]