ext2: check err when partial != NULL
authorChengguang Xu <cgxu519@mykernel.net>
Tue, 5 Nov 2019 04:51:00 +0000 (12:51 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Dec 2019 09:42:09 +0000 (10:42 +0100)
commitb52729015c205a101d38b75206c6f7010fb3c33e
tree539fc95ccea68ee11c495bb6fbdb6eb303a7aa58
parent072d24ef6cb1f309f6c45c71e5b0f04a2e9d48a6
ext2: check err when partial != NULL

commit e705f4b8aa27a59f8933e8f384e9752f052c469c upstream.

Check err when partial == NULL is meaningless because
partial == NULL means getting branch successfully without
error.

CC: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20191105045100.7104-1-cgxu519@mykernel.net
Signed-off-by: Chengguang Xu <cgxu519@mykernel.net>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext2/inode.c