]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
hinic3: Fix NULL vs IS_ERR() check in hinic3_alloc_rxqs_res()
authorDan Carpenter <dan.carpenter@linaro.org>
Thu, 18 Sep 2025 09:45:47 +0000 (12:45 +0300)
committerJakub Kicinski <kuba@kernel.org>
Fri, 19 Sep 2025 14:05:51 +0000 (07:05 -0700)
commitc4bdef8b3d2a9ad4ac45017fa294b3b0784ca974
tree67747dd2cff50b5a4ffdf40e6acefcdc64960d47
parent17f1b7711e81107de60ff1f74b93fe5111dd3b0a
hinic3: Fix NULL vs IS_ERR() check in hinic3_alloc_rxqs_res()

The page_pool_create() function never returns NULL, it returns
error pointers.  Update the check to match.

Fixes: 73f37a7e1993 ("hinic3: Queue pair resource initialization")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Link: https://patch.msgid.link/aMvUywhgbmO1kH3Z@stanley.mountain
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/huawei/hinic3/hinic3_rx.c