summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorPan Bian <bianpan2016@163.com>2016-12-03 23:11:42 +0800
committerSean Paul <seanpaul@chromium.org>2016-12-05 13:14:13 -0500
commit16571a8a435abf73cde769918850ca76a471f14c (patch)
treecf07ae2efb31d8e7dae9684c3727ab6b478a1e7b /init
parent48d9831627c6a059946085ce42d2fd17fb365b8d (diff)
drm/qxl: fix use of uninitialized variable
In function qxl_release_alloc(), when kmalloc() returns a NULL pointer, it returns value 0 and parameter *ret is uninitialized. 0 means no error to the callers of qxl_release_alloc(). The callers keep going and will try to reference the uninitialized variable. This patch fixes the bug, returning "-ENOMEM" when kmalloc() fails. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=188911 Signed-off-by: Pan Bian <bianpan2016@163.com> [seanpaul fixed up subject prefix] Signed-off-by: Sean Paul <seanpaul@chromium.org> Link: http://patchwork.freedesktop.org/patch/msgid/1480777902-7648-1-git-send-email-bianpan2016@163.com
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions