OSDN Git Service

uio: pruss: fix to check return value of platform_get_irq() in pruss_probe()
authorZhang Shurong <zhang_shurong@foxmail.com>
Sat, 22 Jul 2023 15:29:51 +0000 (23:29 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Aug 2023 14:21:04 +0000 (16:21 +0200)
commit2fd84b9b839c3541815733701a06d9df48297a91
treeff6d00edf1d38a0f8ee7d9f75628fdbce31c0cbb
parent05d56d8079d510a2994039470f65bea85f0075ee
uio: pruss: fix to check return value of platform_get_irq() in pruss_probe()

The platform_get_irq might be failed and return a negative result. So
there should have an error handling code.

Fixed this by adding an error handling code.

Signed-off-by: Zhang Shurong <zhang_shurong@foxmail.com>
Link: https://lore.kernel.org/r/tencent_8E383752B54E5BF860711E500AD8A8971208@qq.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/uio/uio_pruss.c