Re: [PATCH] wimax: debug: fix a missing-check bug in d_parse_params()

2019-06-05 Thread Gen Zhang
On Wed, Jun 05, 2019 at 08:33:31AM +0200, Jiri Slaby wrote: > On 30. 05. 19, 11:39, Gen Zhang wrote: > > In d_parse_params(), 'params_orig' is allocated by kstrdup(). It returns > > NULL when fails. So 'params_orig' should be checked. > > > > Signed-off-by: Gen Zhang > > --- > > diff --git a/incl

Re: [PATCH] wimax: debug: fix a missing-check bug in d_parse_params()

2019-06-04 Thread Jiri Slaby
On 30. 05. 19, 11:39, Gen Zhang wrote: > In d_parse_params(), 'params_orig' is allocated by kstrdup(). It returns > NULL when fails. So 'params_orig' should be checked. > > Signed-off-by: Gen Zhang > --- > diff --git a/include/linux/wimax/debug.h b/include/linux/wimax/debug.h > index aaf24ba..bac

[PATCH] wimax: debug: fix a missing-check bug in d_parse_params()

2019-05-30 Thread Gen Zhang
In d_parse_params(), 'params_orig' is allocated by kstrdup(). It returns NULL when fails. So 'params_orig' should be checked. Signed-off-by: Gen Zhang --- diff --git a/include/linux/wimax/debug.h b/include/linux/wimax/debug.h index aaf24ba..bacd6cb 100644 --- a/include/linux/wimax/debug.h +++ b/i