]> git.baikalelectronics.ru Git - kernel.git/commit
fjes: Check for error irq
authorJiasheng Jiang <jiasheng@iscas.ac.cn>
Wed, 22 Dec 2021 07:12:07 +0000 (15:12 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Dec 2021 10:22:13 +0000 (10:22 +0000)
commit2e35c64f3861911fd96ef5439d84439d5a924259
treee129d7813522c1f04b89e1943afb8bbaa965e713
parentab6fdfb95ce8a98aba66b34b18d4268e5a0a12a2
fjes: Check for error irq

I find that platform_get_irq() will not always succeed.
It will return error irq in case of the failure.
Therefore, it might be better to check it if order to avoid the use of
error irq.

Fixes: 39f6d73f26bd ("fjes: Introduce FUJITSU Extended Socket Network Device driver")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/fjes/fjes_main.c