]> git.itanic.dy.fi Git - linux-stable/commit
char: xilinx_hwicap: Fix NULL vs IS_ERR() bug
authorDan Carpenter <dan.carpenter@linaro.org>
Tue, 20 Feb 2024 09:02:31 +0000 (12:02 +0300)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:17:30 +0000 (18:17 -0400)
commit6595eae98ab5363e7aa2ef2592b6ce72231894fe
tree719b3e92164e52de70871b56774f79402d25a315
parente1100e7a5a9dbe786cc2e3baa579669e80b8103a
char: xilinx_hwicap: Fix NULL vs IS_ERR() bug

[ Upstream commit 316459ba4051fd91237171fdca88920128a646f1 ]

The devm_platform_ioremap_resource() function returns error pointers.
It never returns NULL.  Update the check accordingly.

Fixes: 672371832193 ("char: xilinx_hwicap: Modernize driver probe")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Acked-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/ef647a9c-b1b7-4338-9bc0-28165ec2a367@moroto.mountain
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/char/xilinx_hwicap/xilinx_hwicap.c