]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
hostfs: Freeing an ERR_PTR in hostfs_fill_sb_common()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 13 Jul 2016 10:12:34 +0000 (13:12 +0300)
committerJiri Slaby <jslaby@suse.cz>
Thu, 6 Oct 2016 06:21:59 +0000 (08:21 +0200)
commit89f00a62a495d5ac668d40e8012dfd828d686c08
tree5e412cccb518df7e4aca5eb29fa0e4a9c360aa58
parente80908c3e9a982564f020f51e78952e4af93e8a3
hostfs: Freeing an ERR_PTR in hostfs_fill_sb_common()

commit 8a545f185145e3c09348cd74326268ecfc6715a3 upstream.

We can't pass error pointers to kfree() or it causes an oops.

Fixes: 52b209f7b848 ('get rid of hostfs_read_inode()')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
fs/hostfs/hostfs_kern.c