Sven Schnelle 5e1a99cf22 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>
2024-04-26 16:22:38 +02:00
..
2024-03-13 09:23:50 +01:00
2023-06-16 11:08:09 +02:00
2023-01-09 14:33:56 +01:00
2024-04-26 16:22:38 +02:00
2022-07-28 18:05:23 +02:00
2024-03-13 09:23:49 +01:00