Skip to content
Commit 845792d9 authored by Jiri Slaby's avatar Jiri Slaby Committed by Dave Airlie
Browse files

drm: drm_gem, check kzalloc retval



Check kzalloc retval against NULL in drm_gem_object_alloc and bail out
appropriately.

While at it merge the fail paths and jump to them by gotos at the end
of the function.

Signed-off-by: default avatarJiri Slaby <jirislaby@gmail.com>
Signed-off-by: default avatarDave Airlie <airlied@linux.ie>
parent d25e3a6f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment