summaryrefslogtreecommitdiffstats
path: root/block/cmdline-parser.c
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@redhat.com>2020-06-04 10:48:19 +0200
committerMiklos Szeredi <mszeredi@redhat.com>2020-06-04 10:48:19 +0200
commitb8e42a651bdee06202ebdd96cff64fdeabd5b1d6 (patch)
treea3fc302da7b4df46f00c146334d7f6124b6e6a78 /block/cmdline-parser.c
parentovl: add accessor for ofs->upper_mnt (diff)
downloadlinux-b8e42a651bdee06202ebdd96cff64fdeabd5b1d6.tar.xz
linux-b8e42a651bdee06202ebdd96cff64fdeabd5b1d6.zip
ovl: get rid of redundant members in struct ovl_fs
ofs->upper_mnt is copied to ->layers[0].mnt and ->layers[0].trap could be used instead of a separate ->upperdir_trap. Split the lowerdir option early to get the number of layers, then allocate the ->layers array, and finally fill the upper and lower layers, as before. Get rid of path_put_init() in ovl_lower_dir(), since the only caller will take care of that. [Colin Ian King] Fix null pointer dereference on null stack pointer on error return found by Coverity. Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'block/cmdline-parser.c')
0 files changed, 0 insertions, 0 deletions