projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
coda: avoid flagging NULL inodes
[linux-2.6-microblaze.git]
/
fs
/
coda
/
coda_linux.h
diff --git
a/fs/coda/coda_linux.h
b/fs/coda/coda_linux.h
index
e7b2775
..
3c2947b
100644
(file)
--- a/
fs/coda/coda_linux.h
+++ b/
fs/coda/coda_linux.h
@@
-83,6
+83,9
@@
static __inline__ void coda_flag_inode(struct inode *inode, int flag)
{
struct coda_inode_info *cii = ITOC(inode);
+ if (!inode)
+ return;
+
spin_lock(&cii->c_lock);
cii->c_flags |= flag;
spin_unlock(&cii->c_lock);