Re: [PATCH] btrfs: inode: Check if we get a valid inode before checking its mode.

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

 



On Fri, Mar 29, 2019 at 03:12:59PM +0800, Qu Wenruo wrote:
> We should check the inode validation before checking the imode.
> 
> As btrfs_iget() could return ERR_PTR(), unlike previous path, we need to
> verify the inode before checking the imode.
> 
> Signed-off-by: Qu Wenruo <wqu@xxxxxxxx>
> ---
> To David:
> 
> Please fold this into 9944a5b5d26e ("btrfs: inode: Verify inode mode to avoid NULL pointer dereference") 
> of misc-next branch.

Folded and branch pushed, thanks.



[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux