From: hujianyang Date: Tue, 6 Jan 2015 04:52:13 +0000 (+0800) Subject: ovl: Fix kernel panic while mounting overlayfs X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~3^2~17^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f83fd8c2849a388082f30d755a75c1e67c4643b;p=pandora-kernel.git ovl: Fix kernel panic while mounting overlayfs The function ovl_fill_super() in recently multi-layer support version will incorrectly return 0 at error handling path and then cause kernel panic. This failure can be reproduced by mounting a overlayfs with upperdir and workdir in different mounts. And also, If the memory allocation of *lower_mnt* fail, this function may return an zero either. This patch fix this problem by setting *err* to proper error number before jumping to error handling path. Signed-off-by: hujianyang Signed-off-by: Miklos Szeredi --- Reading git-diff-tree failed