Skip to content
Commit a1c59752 authored by Amit Shah's avatar Amit Shah Committed by Anthony Liguori
Browse files

virtio-serial: Fix check for 'assert'; prevent NULL derefs



In the flush_queued_data() function, we expect port to be valid. Assert
only for port and not port || discard.

Reported-by: default avatarJuan Quintela <quintela@redhat.com>
Signed-off-by: default avatarAmit Shah <amit.shah@redhat.com>
Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
parent f8778a77
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment