USBMSC: Always set LUN readonly flag.

This commit is contained in:
Wolfgang Reißnegger 2017-02-08 17:12:56 -08:00
parent f126cd9d46
commit cfe7c4012e

View File

@ -1529,6 +1529,7 @@ int usbmsc_bindlun(FAR void *handle, FAR const char *drvrpath,
lun->startsector = startsector;
lun->nsectors = nsectors;
lun->sectorsize = geo.geo_sectorsize;
lun->readonly = readonly;
/* If the driver does not support the write method, then this is read-only */