Reset bio in reiser4_status_write() to prevent oops in error paths. Signed-off-by: Edward Shishkin <edward.shishkin@xxxxxxxxx> --- fs/reiser4/status_flags.c | 1 + 1 file changed, 1 insertion(+) --- a/fs/reiser4/status_flags.c +++ b/fs/reiser4/status_flags.c @@ -145,6 +145,7 @@ int reiser4_status_write(__u64 status, _ strncpy(statuspage->texterror, message, REISER4_TEXTERROR_LEN); kunmap_atomic((char *)statuspage); + bio_reset(bio); bio->bi_bdev = sb->s_bdev; bio->bi_io_vec[0].bv_page = get_super_private(sb)->status_page; bio->bi_io_vec[0].bv_len = sb->s_blocksize;