projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
new helper: file_inode(file)
[linux-2.6-block.git]
/
drivers
/
usb
/
gadget
/
storage_common.c
diff --git
a/drivers/usb/gadget/storage_common.c
b/drivers/usb/gadget/storage_common.c
index 0e3ae43454a246543317d323eb07667ae1693ea1..b5d3f0eeeb7d0380c432179689bad2670f56b775 100644
(file)
--- a/
drivers/usb/gadget/storage_common.c
+++ b/
drivers/usb/gadget/storage_common.c
@@
-501,7
+501,7
@@
static int fsg_lun_open(struct fsg_lun *curlun, const char *filename)
if (!(filp->f_mode & FMODE_WRITE))
ro = 1;
- inode = fil
p->f_path.dentry->d_inode
;
+ inode = fil
e_inode(filp)
;
if ((!S_ISREG(inode->i_mode) && !S_ISBLK(inode->i_mode))) {
LINFO(curlun, "invalid file type: %s\n", filename);
goto out;