]> git.proxmox.com Git - mirror_qemu.git/commit
usb-mtp: Unconditionally check for the readonly bit
authorBandan Das <bsd@redhat.com>
Thu, 3 May 2018 19:20:28 +0000 (15:20 -0400)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 7 May 2018 09:10:25 +0000 (11:10 +0200)
commit2392ae6bbb0a940a4fd6df29e704b09cadc14790
tree99d43ff4fb288ba21adf7f3bd08961ed89d86e62
parent24e8d1faea1e4a2dc59841e048390645d7804cb5
usb-mtp: Unconditionally check for the readonly bit

Currently, it's only being checked if desc is NULL and
so write support breaks upon specifying desc

Signed-off-by: Bandan Das <bsd@redhat.com>
Message-id: 20180503192028.14353-3-bsd@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/dev-mtp.c