Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 248761
b: refs/heads/master
c: fd4477b
h: refs/heads/master
i:
  248759: 60e5870
v: v3
  • Loading branch information
Michal Nazarewicz authored and Greg Kroah-Hartman committed Apr 30, 2011
1 parent f152327 commit 3cbf148
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 865835fa441fcabc65251f14280df3055fe82d0f
refs/heads/master: fd4477b09e13f60c7d9e497311ea6410a94aaae8
3 changes: 2 additions & 1 deletion trunk/drivers/usb/gadget/storage_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ static ssize_t fsg_show_file(struct device *dev, struct device_attribute *attr,
static ssize_t fsg_store_ro(struct device *dev, struct device_attribute *attr,
const char *buf, size_t count)
{
ssize_t rc = count;
ssize_t rc;
struct fsg_lun *curlun = fsg_lun_from_dev(dev);
struct rw_semaphore *filesem = dev_get_drvdata(dev);
unsigned ro;
Expand All @@ -729,6 +729,7 @@ static ssize_t fsg_store_ro(struct device *dev, struct device_attribute *attr,
curlun->ro = ro;
curlun->initially_ro = ro;
LDBG(curlun, "read-only status set to %d\n", curlun->ro);
rc = count;
}
up_read(filesem);
return rc;
Expand Down

0 comments on commit 3cbf148

Please sign in to comment.