patch-2.4.0-test11 linux/fs/namei.c

Next file: linux/fs/ncpfs/dir.c
Previous file: linux/fs/minix/bitmap.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test10/linux/fs/namei.c linux/fs/namei.c
@@ -1381,7 +1381,10 @@
 		case LAST_DOTDOT:
 			error = -ENOTEMPTY;
 			goto exit1;
-		case LAST_ROOT: case LAST_DOT:
+		case LAST_DOT:
+			error = -EINVAL;
+			goto exit1;
+		case LAST_ROOT:
 			error = -EBUSY;
 			goto exit1;
 	}
@@ -1949,7 +1952,7 @@
 	if (!Page_Uptodate(page))
 		goto async_fail;
 	*ppage = page;
-	return (char*) kmap(page);
+	return kmap(page);
 
 async_fail:
 	page_cache_release(page);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)