summaryrefslogtreecommitdiff
path: root/drivers/clk/clk-axm5516.c
diff options
context:
space:
mode:
authorMurray McAllister <murray.mcallister@insomniasec.com>2017-03-27 11:15:12 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-04-12 12:38:32 +0200
commit0e075f266749ea6507758123f553fece6664e4e2 (patch)
treec5ba7da59f0ea48438247174e49b3ed5acb3e695 /drivers/clk/clk-axm5516.c
parentb26629453c7b2a6c82000b36fbd1cfc4d9101808 (diff)
drm/vmwgfx: avoid calling vzalloc with a 0 size in vmw_get_cap_3d_ioctl()
commit 63774069d9527a1aeaa4aa20e929ef5e8e9ecc38 upstream. In vmw_get_cap_3d_ioctl(), a user can supply 0 for a size that is used in vzalloc(). This eventually calls dump_stack() (in warn_alloc()), which can leak useful addresses to dmesg. Add check to avoid a size of 0. Signed-off-by: Murray McAllister <murray.mcallister@insomniasec.com> Reviewed-by: Sinclair Yeh <syeh@vmware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/clk/clk-axm5516.c')
0 files changed, 0 insertions, 0 deletions