usb: gadget: f_mass_storage: If 'ro'/'cdrom' specified, open file as read-only
authorRoger Quadros <roger.quadros@nokia.com>
Tue, 5 Apr 2011 15:36:39 +0000 (18:36 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 13 Apr 2011 23:40:59 +0000 (16:40 -0700)
commit3c624d4962a583516acadcbf60a8ca2a48421f5c
tree85d60787a7287c2dd3260027026c963680c38f5d
parent73ee4da994e7b97bd8241e39099cf3dd94675d79
usb: gadget: f_mass_storage: If 'ro'/'cdrom' specified, open file as read-only

If we don't need Write access then attempt to open backing file in Read Only
mode instead of bailing out too soon.

Signed-off-by: Roger Quadros <roger.quadros@nokia.com>
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/f_mass_storage.c