]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
nandfs_meta_bread() calls bread() which can set bp to NULL in some
authorWarner Losh <imp@FreeBSD.org>
Sun, 1 Mar 2015 21:41:37 +0000 (21:41 +0000)
committerWarner Losh <imp@FreeBSD.org>
Sun, 1 Mar 2015 21:41:37 +0000 (21:41 +0000)
commit03afe9ba7014d242d5f76a956879794668caa290
tree7f9381c096dc27b88b91bc696dcc4303fbfbc163
parentbe2c6c0dbdc8baabbe92a5910f4f49e9343b300d
nandfs_meta_bread() calls bread() which can set bp to NULL in some
error cases. Calling brelse() with a NULL pointer is not allowed,
so only call brelse() when the bp is non-NULL.

Reported by: Maxime Villard (reported as uninitialized variable)
sys/fs/nandfs/bmap.c