]> git.baikalelectronics.ru Git - kernel.git/commit
s390/lcs: fix variable dereferenced before check
authorAlexandra Winter <wintera@linux.ibm.com>
Tue, 10 May 2022 07:05:08 +0000 (09:05 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 May 2022 11:31:01 +0000 (12:31 +0100)
commitbf3542cd4df2b7747bc7509bc429ad055bd23b15
tree359c4f74206330efac17d20523f50145d887e48e
parent934bb69e9d02f550cbee52b6b0ab37cb993c33f1
s390/lcs: fix variable dereferenced before check

smatch complains about
drivers/s390/net/lcs.c:1741 lcs_get_control() warn: variable dereferenced before check 'card->dev' (see line 1739)

Fixes: 4852da22b200 ("[PATCH] s390: lcs driver bug fixes and improvements [1/2]")
Signed-off-by: Alexandra Winter <wintera@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/s390/net/lcs.c