filesys: fix dumb bug introduced in previous commit
authorAlan Cox <alan@linux.intel.com>
Sat, 26 Dec 2015 22:02:41 +0000 (22:02 +0000)
committerAlan Cox <alan@linux.intel.com>
Sat, 26 Dec 2015 22:02:41 +0000 (22:02 +0000)
Kernel/filesys.c

index feddbdc..ba491ab 100644 (file)
@@ -364,7 +364,7 @@ void filename(char *userspace_upath, char *name)
         *ptr-- = 0;
     /* Walk back until we drop off the start of the buffer or find the
        slash */
-    while(*ptr != '/' && ptr-- >= buf);
+    while(*ptr != '/' && ptr-- > buf);
     /* And move past the slash, or not the string start */
     ptr++;
     memcpy(name, ptr, FILENAME_LEN);