[f2fs-dev] f2fs: handle errors from get_node_page calls

2013-05-31 Thread Jason Hrycay
Add check for error pointers returned from get_node_page in order to avoid dereferencing a bad address on the next use. Signed-off-by: Jason Hrycay --- fs/f2fs/xattr.c | 4 1 file changed, 4 insertions(+) diff --git a/fs/f2fs/xattr.c b/fs/f2fs/xattr.c index 0b02dce..ae61f35 100644 --- a

Re: [f2fs-dev] [PATCH 3/4] f2fs: return proper error from start_gc_thread

2013-05-23 Thread Jason Hrycay
{ > kfree(gc_th); gc_th is free'd here, save off PTR_ERR result to avoid use-after-free? > sbi->gc_thread = NULL; > - return -ENOMEM; > + return PTR_ERR(