Sergey Senozhatsky df32de1433 zram: correctly handle all next_arg() cases
When supplied buffer does not have assignment sign next_arg() sets `val`
pointer to NULL, so we cannot dereference it.  Add a NULL pointer test to
handle `param` case, in addition to `*val` test, which handles cases when
param has no value assigned to it: `param=`.

Link: https://lkml.kernel.org/r/20230103030119.1496358-1-senozhatsky@chromium.org
Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Cc: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2023-01-18 17:12:56 -08:00
..
2023-01-06 13:12:42 -08:00
2022-10-07 12:05:29 -07:00
2022-06-28 06:33:15 -06:00
2022-06-28 06:33:15 -06:00
2023-01-04 14:44:13 -07:00
2023-01-04 14:44:13 -07:00
2022-06-28 06:33:15 -06:00
2023-01-04 14:44:13 -07:00
2022-06-28 06:33:15 -06:00
2022-06-28 06:33:15 -06:00
2022-06-28 06:33:15 -06:00
2022-06-28 06:33:15 -06:00
2023-01-12 17:02:20 -06:00
2022-06-28 06:33:15 -06:00