Re: [PATCH] orangefs-debugfs: fix a missing-check bug in debug_string_to_mask()

2019-06-04 Thread Jiri Slaby
On 30. 05. 19, 11:04, Gen Zhang wrote: > In debug_string_to_mask(), 'strsep_fodder' is allocated by kstrdup(). > It returns NULL when fails. So 'strsep_fodder' should be checked. > > Signed-off-by: Gen Zhang > --- > diff --git a/fs/orangefs/orangefs-debugfs.c b/fs/orangefs/orangefs-debugfs.c > in

[PATCH] orangefs-debugfs: fix a missing-check bug in debug_string_to_mask()

2019-05-30 Thread Gen Zhang
In debug_string_to_mask(), 'strsep_fodder' is allocated by kstrdup(). It returns NULL when fails. So 'strsep_fodder' should be checked. Signed-off-by: Gen Zhang --- diff --git a/fs/orangefs/orangefs-debugfs.c b/fs/orangefs/orangefs-debugfs.c index 87b1a6f..a9a9aac 100644 --- a/fs/orangefs/orangef