diff options
| author | Nirmal Abraham <nabrah@codeaurora.org> | 2019-08-16 16:39:17 +0530 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2019-10-15 22:42:19 -0700 |
| commit | 6dec23e2d32dd103cb6ece90a831f3bb224a8f4f (patch) | |
| tree | 6ceeae4bff69f964639446b567caa24cb6a9d418 /drivers/md/raid1.c | |
| parent | c65b9585249986588b205fbed6eda20924423e72 (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
