linux/fs/kernfs
Tejun Heo 59516f324f kernfs: add back missing error check in kernfs_fop_mmap()
commit b44b214026 upstream.

While updating how mmap enabled kernfs files are handled by lockdep,
9b2db6e189 ("sysfs: bail early from kernfs_file_mmap() to avoid
spurious lockdep warning") inadvertently dropped error return check
from kernfs_file_mmap().  The intention was just dropping "if
(ops->mmap)" check as the control won't reach the point if the mmap
callback isn't implemented, but I mistakenly removed the error return
check together with it.

This led to Xorg crash on i810 which was reported and bisected to the
commit and then to the specific change by Tobias.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-and-bisected-by: Tobias Powalowski <tobias.powalowski@googlemail.com>
Tested-by: Tobias Powalowski <tobias.powalowski@googlemail.com>
References: http://lkml.kernel.org/g/533D01BD.1010200@googlemail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-07 10:28:08 -07:00
..
Makefile
dir.c kernfs: fix off by one error. 2014-04-26 17:19:03 -07:00
file.c kernfs: add back missing error check in kernfs_fop_mmap() 2014-06-07 10:28:08 -07:00
inode.c kernfs: protect lazy kernfs_iattrs allocation with mutex 2014-04-26 17:19:04 -07:00
kernfs-internal.h kernfs: associate a new kernfs_node with its parent on creation 2014-01-17 11:50:07 -08:00
mount.c sysfs: fix namespace refcnt leak 2014-02-25 07:37:52 -08:00
symlink.c kernfs: associate a new kernfs_node with its parent on creation 2014-01-17 11:50:07 -08:00