diff options
| author | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | 2011-01-22 13:07:26 +0000 |
|---|---|---|
| committer | Aurelien Jarno <aurelien@aurel32.net> | 2011-02-20 18:26:28 +0100 |
| commit | 1bbd185fa826a2da7c6089b968f9f7d08438c2c8 (patch) | |
| tree | b300a4248851f9a5edeb0c9d19f120def572a0d8 /hw/pxa2xx_keypad.c | |
| parent | 9f953ca0b8ae71f4ea8112a3aac36454a2c4b907 (diff) | |
| download | focaccia-qemu-1bbd185fa826a2da7c6089b968f9f7d08438c2c8.tar.gz focaccia-qemu-1bbd185fa826a2da7c6089b968f9f7d08438c2c8.zip | |
qemu-char: Check for missing backend name
Check if the backend option is missing before searching the backend table. This fixes a NULL pointer dereference when QEMU is invoked with the following invalid command-line: $ qemu -chardev id=foo,path=/tmp/socket Previously QEMU would segfault, now it produces this error message: chardev: "foo" missing backend Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'hw/pxa2xx_keypad.c')
0 files changed, 0 insertions, 0 deletions