summaryrefslogtreecommitdiff
path: root/drivers/md/raid1.c
diff options
context:
space:
mode:
authorNirmal Abraham <nabrah@codeaurora.org>2019-08-16 16:39:17 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2019-10-15 22:42:19 -0700
commit6dec23e2d32dd103cb6ece90a831f3bb224a8f4f (patch)
tree6ceeae4bff69f964639446b567caa24cb6a9d418 /drivers/md/raid1.c
parentc65b9585249986588b205fbed6eda20924423e72 (diff)
fbdev: msm: Avoid UAF in mdss_dsi_cmd_write
In mdss_dsi_cmd_write, a failure in copying the cmds to 'string_buf' can cause an early return. In this case, the 'pcmds->string_buf' won't be pointing to a valid buffer. This can lead to use-after-free and memory leak. To avoid this, assign the newly allocated buffer to 'pcmds->string_buf' after returning from krealloc call. Change-Id: I286f12c86078d1989cb09453c8a395a4ad94b324 Signed-off-by: Nirmal Abraham <nabrah@codeaurora.org>
Diffstat (limited to 'drivers/md/raid1.c')
0 files changed, 0 insertions, 0 deletions