summaryrefslogtreecommitdiff
path: root/drivers/hwmon/thmc50.c
diff options
context:
space:
mode:
authorSven Schnelle <svens@linux.ibm.com>2024-04-23 08:57:49 +0300
committerAlexander Gordeev <agordeev@linux.ibm.com>2024-04-26 17:22:38 +0300
commit5e1a99cf22a65bd91cb43c5380cc14a44b85ad2a (patch)
treebabab91801c4f04c7e5d124128cf42d773a6ee56 /drivers/hwmon/thmc50.c
parent412050af2ea39407fe43324b0be4ab641530ce88 (diff)
downloadlinux-5e1a99cf22a65bd91cb43c5380cc14a44b85ad2a.tar.xz
s390/3270: Fix buffer assignment
Since commit 1b2ac5a6d61f ("s390/3270: use new address translation helpers") rq->buffer is passed unconditionally to virt_to_dma32(). The 3270 driver allocates requests without buffer, so the value passed to virt_to_dma32 might be NULL. Check for NULL before assigning. Fixes: 1b2ac5a6d61f ("s390/3270: use new address translation helpers") Reviewed-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Sven Schnelle <svens@linux.ibm.com> Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Diffstat (limited to 'drivers/hwmon/thmc50.c')
0 files changed, 0 insertions, 0 deletions