Patch "drm/vmwgfx: Handle vmalloc() failure in vmw_local_fifo_reserve()" has been added to the 4.4-stable tree
Subsystems (4)
This is a note to let you know that I've just added the patch titled
drm/vmwgfx: Handle vmalloc() failure in vmw_local_fifo_reserve()
to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
drm-vmwgfx-handle-vmalloc-failure-in-vmw_local_fifo_reserve.patch
and it can be found in the queue-4.4 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
f0c62e9878024300319ba2438adc7b06c6b9c448Mon Sep 17 00:00:00 2001
From: Dan Carpenter <[email protected]>
Date: Thu, 27 Apr 2017 12:12:08 +0300
Subject: drm/vmwgfx: Handle vmalloc() failure in vmw_local_fifo_reserve()
From: Dan Carpenter <[email protected]>
commit f0c62e9878024300319ba2438adc7b06c6b9c448 upstream.
If vmalloc() fails then we need to a bit of cleanup before returning.
--- drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c +2 -0
@@ -368,6 +368,8 @@ static void *vmw_local_fifo_reserve(strureturn fifo_state->static_buffer; else { fifo_state->dynamic_buffer =vmalloc (bytes); +if (!fifo_state->dynamic_buffer) + goto out_err;return fifo_state->dynamic_buffer; } }
Patches currently in stable-queue which might be from [email protected] are
queue-4.4/drm-vmwgfx-handle-vmalloc-failure-in-vmw_local_fifo_reserve.patch