Re: [PATCH] Null check to prevent null-ptr-deref bug

From: Greg KH
Date: Sun May 28 2023 - 13:51:52 EST


On Sun, May 28, 2023 at 10:35:46AM -0700, Prince Kumar Maurya wrote:
> sb_getblk(inode->i_sb, parent) return a null ptr and taking lock on
> that leads to the null-ptr-deref bug.
>
> Signed-off-by: Prince Kumar Maurya <princekumarmaurya06@xxxxxxxxx>
> ---
> Change since v1: update the commit message.

Your subject: line needs to also be fixed up. Please see the kernel
documentation for how to do this properly.

thanks

greg k-h