]> git.proxmox.com Git - qemu.git/commit
ETRAX-FS: Fix a segfault if pflash drive not found.
authoredgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 13 Nov 2008 21:10:25 +0000 (21:10 +0000)
committeredgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 13 Nov 2008 21:10:25 +0000 (21:10 +0000)
commit9eee9a5dacf1a4e6a8bb4f19c05bfc87688a8549
treebd77c51fc698b80c3eecb6152bde99e1ebc400ae
parent10781c09ed7ab6a0e36d7b8f1fbf7c49128eb177
ETRAX-FS: Fix a segfault if pflash drive not found.

drive_get_index() returns -1 if a drive isn't found; don't
use -1 to index drives_table.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5719 c046a42c-6fe2-441c-8c8c-71466251a162
hw/etraxfs.c