Re: [PATCH] ocfs2:fix potential Null Ptr Dereference

2019-10-09 Thread Joseph Qi
On 19/10/10 09:07, Yizhuo wrote: > Inside function o2hb_region_blocks_store(), to_o2hb_region() > could return NULL but there's no check before its dereference, > which is potentially unsafe. As I described before, this won't happen IMHO. configfs item is initialized after loading module, so re

[PATCH] ocfs2:fix potential Null Ptr Dereference

2019-10-09 Thread Yizhuo
Inside function o2hb_region_blocks_store(), to_o2hb_region() could return NULL but there's no check before its dereference, which is potentially unsafe. Signed-off-by: Yizhuo --- fs/ocfs2/cluster/heartbeat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ocfs2/cluster/hea