linux/drivers/s390
Alexandra Winter 5497f87edc s390/ctcm: fix variable dereferenced before check
[ Upstream commit 2c50c6867c ]

Found by cppcheck and smatch.
smatch complains about
drivers/s390/net/ctcm_sysfs.c:43 ctcm_buffer_write() warn: variable dereferenced before check 'priv' (see line 42)

Fixes: 3c09e2647b ("ctcm: rename READ/WRITE defines to avoid redefinitions")
Reported-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Alexandra Winter <wintera@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-05-18 10:23:44 +02:00
..
block s390/dasd: Fix read inconsistency for ESE DASD devices 2022-05-12 12:25:34 +02:00
char s390/tape: fix timer initialization in tape_std_assign() 2021-11-18 14:04:30 +01:00
cio s390/cio: make ccw_device_dma_* more robust 2021-11-18 14:04:30 +01:00
crypto s390/ap: Fix hanging ioctl caused by orphaned replies 2021-11-18 14:04:30 +01:00
net s390/ctcm: fix variable dereferenced before check 2022-05-18 10:23:44 +02:00
scsi scsi: zfcp: Fix failed recovery on gone remote port with non-NPIV FCP devices 2022-02-01 17:25:39 +01:00
virtio virtio/s390: implement virtio-ccw revision 2 correctly 2021-03-04 11:38:42 +01:00
Makefile s390: remove pointless drivers-y in drivers/s390/Makefile 2019-09-16 13:21:51 +02:00