Re: [Qemu-devel] [PATCH v3] net: Fix a potential segfault

2018-06-11 Thread Jason Wang
On 2018年06月11日 17:48, Thomas Huth wrote: On 11.06.2018 11:23, Lin Ma wrote: If user forgets to provide any backend types for '-netdev' in qemu CLI, It triggers seg fault. e.g. Expected: $ qemu -netdev id=net0 qemu-system-x86_64: Parameter 'type' is missing Actual: $ qemu -netdev id=net0 Se

Re: [Qemu-devel] [PATCH v3] net: Fix a potential segfault

2018-06-11 Thread Thomas Huth
On 11.06.2018 11:23, Lin Ma wrote: > If user forgets to provide any backend types for '-netdev' in qemu CLI, > It triggers seg fault. > > e.g. > > Expected: > $ qemu -netdev id=net0 > qemu-system-x86_64: Parameter 'type' is missing > > Actual: > $ qemu -netdev id=net0 > Segmentation fault (core

[Qemu-devel] [PATCH v3] net: Fix a potential segfault

2018-06-11 Thread Lin Ma
If user forgets to provide any backend types for '-netdev' in qemu CLI, It triggers seg fault. e.g. Expected: $ qemu -netdev id=net0 qemu-system-x86_64: Parameter 'type' is missing Actual: $ qemu -netdev id=net0 Segmentation fault (core dumped) Signed-off-by: Lin Ma --- net/net.c | 4 +++- 1