Files
twx-linux/drivers
Christophe JAILLET c77f58ef61 net/qla3xxx: Fix a test in ql_reset_work()
[ Upstream commit 5361448e45 ]

test_bit() tests if one bit is set or not.
Here the logic seems to check of bit QL_RESET_PER_SCSI (i.e. 4) OR bit
QL_RESET_START (i.e. 3) is set.

In fact, it checks if bit 7 (4 | 3 = 7) is set, that is to say
QL_ADAPTER_UP.

This looks harmless, because this bit is likely be set, and when the
ql_reset_work() delayed work is scheduled in ql3xxx_isr() (the only place
that schedule this work), QL_RESET_START or QL_RESET_PER_SCSI is set.

This has been spotted by smatch.

Fixes: 5a4faa8737 ("[PATCH] qla3xxx NIC driver")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/80e73e33f390001d9c0140ffa9baddf6466a41a2.1652637337.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-05-25 08:39:49 +02:00
..
2021-12-14 10:04:48 +01:00
…
…
…
…
…
…
2021-11-26 11:48:20 +01:00
…
…
2022-03-02 11:32:03 +01:00
…
2022-05-12 12:14:53 +02:00
…
…
…
…
…
…
…
2022-04-20 09:06:42 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…