summaryrefslogtreecommitdiff
path: root/fs/cramfs
diff options
context:
space:
mode:
authorSergey Senozhatsky <senozhatsky@chromium.org>2023-01-03 06:01:19 +0300
committerAndrew Morton <akpm@linux-foundation.org>2023-01-19 04:12:56 +0300
commitdf32de1433412621b92daf1b3369ac053214031e (patch)
treeb77ead2c7095975fa72093c8a2a3d7ec50a6463e /fs/cramfs
parent4b89a37d54a0b5ed6b2e5a9afc44a15a22e563f5 (diff)
downloadlinux-df32de1433412621b92daf1b3369ac053214031e.tar.xz
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>
Diffstat (limited to 'fs/cramfs')
0 files changed, 0 insertions, 0 deletions