On Fri, Feb 23, 2024 at 05:36:41PM +0800, Su Hui wrote: > This problem was previously fixed by commit ac2c63757f4f ("orangefs: Fix sb > refcount leak when allocate sb info failed."). > Add a judgement to fix NULL deference problem and also avoid refcount > leak problem. > > Fixes: 9bf93dcfc453 ("Julia Lawall reported this null pointer dereference, this should fix it.") > Signed-off-by: Su Hui <suhui@xxxxxxxxxxxx> > --- > ps: Thanks for Dan's suggestion[1]. > [1]: https://lore.kernel.org/all/c4bf77fb-c289-4f5d-9f20-e0861a543d91@moroto.mountain/ Thanks! Reviewed-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> regards, dan carpenter