From: Al Viro Date: Wed, 23 Dec 2009 04:45:11 +0000 (-0500) Subject: fix autofs/afs/etc. magic mountpoint breakage X-Git-Tag: v2.6.33-rc5~25^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86acdca1b63e6890540fa19495cfc708beff3d8b;p=pandora-kernel.git fix autofs/afs/etc. magic mountpoint breakage We end up trying to kfree() nd.last.name on open("/mnt/tmp", O_CREAT) if /mnt/tmp is an autofs direct mount. The reason is that nd.last_type is bogus here; we want LAST_BIND for everything of that kind and we get LAST_NORM left over from finding parent directory. So make sure that it *is* set properly; set to LAST_BIND before doing ->follow_link() - for normal symlinks it will be changed by __vfs_follow_link() and everything else needs it set that way. Signed-off-by: Al Viro --- Reading git-diff-tree failed