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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 30 Sep 2016 08:18:39 +0000 (10:18 +0200)
commit7b251d3404dfd0384274b7493722f65a1ceaa724
treee632710454709bcd17cd5b220f61c3ca7d6e138d
parent69b10e10f5a8c99d8df4769053be1bd71a97f770
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/hostfs/hostfs_kern.c