diff options
author | Kevin Wolf <mail@kevin-wolf.de> | 2010-09-10 12:27:02 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2010-09-21 15:39:42 +0200 |
commit | ac48e389d073bf2c8703745eef4824fabe0427ba (patch) | |
tree | 9fa85d6bc3d664576bc25a27c2733d68b657c6ab /softmmu_defs.h | |
parent | a287916c712b0c57a97cd35c663c5e7ba061bc7e (diff) |
vvfat: Fix segfault on write to read-only disk
vvfat tries to set the readonly flag in its open function, but nowadays
this is overwritted with the readonly=... command line option. Check in
bdrv_write if the vvfat was opened read-only and return an error in this
case.
Without this check, vvfat tries to access the qcow bs, which is NULL
without enabled write support.
Signed-off-by: Kevin Wolf <mail@kevin-wolf.de>
Diffstat (limited to 'softmmu_defs.h')
0 files changed, 0 insertions, 0 deletions