]> git.baikalelectronics.ru Git - kernel.git/commit
hfs: fix hfs_readdir()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 18 Jan 2017 11:13:20 +0000 (14:13 +0300)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 19 Feb 2017 03:11:15 +0000 (22:11 -0500)
commit85217682c06e401898cf9c6f7089ce73c943e678
tree13d332c6bab80e1974fb8b4fa5673480b2d2c596
parent14f9676c595f270380501c3a9e9e461b146ad891
hfs: fix hfs_readdir()

I was looking through static analysis warnings and there is a bug here
that goes all the way back to the start of git.  Basically we're copying
the pointer and nearby garbage instead of the data the fd.key pointer is
pointing to.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Vyacheslav Dubeyko <slava@dubeyko.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/hfs/dir.c