diff options
author | Sven Schnelle <svens@linux.ibm.com> | 2024-04-23 07:57:49 +0200 |
---|---|---|
committer | Alexander Gordeev <agordeev@linux.ibm.com> | 2024-04-26 16:22:38 +0200 |
commit | 5e1a99cf22a65bd91cb43c5380cc14a44b85ad2a (patch) | |
tree | babab91801c4f04c7e5d124128cf42d773a6ee56 /tools/perf/scripts/python/check-perf-trace.py | |
parent | 412050af2ea39407fe43324b0be4ab641530ce88 (diff) |
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 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions