Re: [OPW kernel] [PATCH v9 1/2] Staging: zram: Fix access of NULL pointer

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

 



On Sun, Nov 10, 2013 at 09:42:32PM +0530, Rashika Kheria wrote:
> This patch fixes the bug in reset_store caused by accessing NULL pointer.
> 
> The bdev gets its value from bdget_disk() which could fail when memory
> pressure is severe and hence can return NULL because allocation of
> inode in bdget could fail.
> 
> Hence, this patch introduces a check for bdev to prevent reference to a
> NULL pointer in the later part of the code. It also removes unnecessary
> check of bdev for fsync_bdev().
> 
> Cc: stable@xxxxxxxxxxxxxxx
> Acked-by: Jerome Marchand <jmarchan@xxxxxxxxxx> 
> Signed-off-by: Rashika Kheria <rashika.kheria@xxxxxxxxx>
> ---
>  drivers/staging/zram/zram_drv.c |    6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)

I'm still confused, what happened to patch 2/2?

Can you just send me the patches, in an ordered series, of _all_ of the
outstanding zram patches.  That way I know I got them all, as it is, I'm
still not sure as it seems that I am missing some, and the v10 patch is
not in any specific order.

thanks,

greg k-h
--
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]