* [PATCH 2/3] reiser4: fixup status writes
@ 2015-08-16 18:15 Edward Shishkin
0 siblings, 0 replies; 2+ messages in thread
From: Edward Shishkin @ 2015-08-16 18:15 UTC (permalink / raw)
To: ReiserFS development mailing list
[-- Attachment #1: Type: text/plain, Size: 1 bytes --]
[-- Attachment #2: reiser4-fixup-status_write.patch --]
[-- Type: text/x-patch, Size: 590 bytes --]
Reset bio in reiser4_status_write() to prevent oops in error paths.
Signed-off-by: Edward Shishkin <edward.shishkin@gmail.com>
---
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;
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 2/3] reiser4: fixup status writes
@ 2015-08-16 13:22 Edward Shishkin
0 siblings, 0 replies; 2+ messages in thread
From: Edward Shishkin @ 2015-08-16 13:22 UTC (permalink / raw)
To: ReiserFS development mailing list
[-- Attachment #1: Type: text/plain, Size: 1 bytes --]
[-- Attachment #2: reiser4-fixup-status_write.patch --]
[-- Type: text/x-patch, Size: 590 bytes --]
Reset bio in reiser4_status_write() to prevent oops in error paths.
Signed-off-by: Edward Shishkin <edward.shishkin@gmail.com>
---
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;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-08-16 18:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-16 18:15 [PATCH 2/3] reiser4: fixup status writes Edward Shishkin
-- strict thread matches above, loose matches on Subject: below --
2015-08-16 13:22 Edward Shishkin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).