diff options
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r-- | drivers/usb/gadget/file_storage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/file_storage.c b/drivers/usb/gadget/file_storage.c index 1e6aa504d58a..5e14dbaf65bc 100644 --- a/drivers/usb/gadget/file_storage.c +++ b/drivers/usb/gadget/file_storage.c | |||
@@ -1713,7 +1713,7 @@ static int do_write(struct fsg_dev *fsg) | |||
1713 | } | 1713 | } |
1714 | if (fsg->cmnd[1] & 0x08) { // FUA | 1714 | if (fsg->cmnd[1] & 0x08) { // FUA |
1715 | spin_lock(&curlun->filp->f_lock); | 1715 | spin_lock(&curlun->filp->f_lock); |
1716 | curlun->filp->f_flags |= O_SYNC; | 1716 | curlun->filp->f_flags |= O_DSYNC; |
1717 | spin_unlock(&curlun->filp->f_lock); | 1717 | spin_unlock(&curlun->filp->f_lock); |
1718 | } | 1718 | } |
1719 | } | 1719 | } |