]> git.proxmox.com Git - mirror_qemu.git/commit
can-host-socketcan: Fix crash when 'if' option is not set
authorEduardo Habkost <ehabkost@redhat.com>
Thu, 8 Oct 2020 20:27:12 +0000 (16:27 -0400)
committerEduardo Habkost <ehabkost@redhat.com>
Tue, 13 Oct 2020 19:56:30 +0000 (15:56 -0400)
commitd9753cca6b0db724bc6d15e60cfad1705f800b96
treecb7bc270cb7c2fa1d9a6fd51afa1c7b9e0a4b6f9
parent14b394853606ab79f1d71f3bbbb4ccaab6538c8f
can-host-socketcan: Fix crash when 'if' option is not set

Fix the following crash:

  $ qemu-system-x86_64 -object can-host-socketcan,id=obj0
  Segmentation fault (core dumped)

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Li Qiang <liq3ea@gmail.com>
Acked-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Message-Id: <20201008202713.1416823-3-ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
net/can/can_socketcan.c