putname(): IS_ERR_OR_NULL() is wrong here
[linux-2.6-microblaze.git] / fs / namei.c
index bbb5c9b..1946d96 100644 (file)
@@ -255,7 +255,7 @@ getname_kernel(const char * filename)
 
 void putname(struct filename *name)
 {
-       if (IS_ERR_OR_NULL(name))
+       if (IS_ERR(name))
                return;
 
        BUG_ON(name->refcnt <= 0);