]> 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)
committerWilly Tarreau <w@1wt.eu>
Fri, 10 Feb 2017 10:03:30 +0000 (11:03 +0100)
commitcb1f02fdce552a4a962cb290571504ceed9c6d7e
tree9b3cd0eb808f04c6f44a6faae1945eecaef4b5bf
parentca39cc12d76184890036453ebcfba4371221b5fb
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: Willy Tarreau <w@1wt.eu>
fs/hostfs/hostfs_kern.c