Skip to content
Commit c6bf811a authored by Tom Gundersen's avatar Tom Gundersen Committed by Sean Paul
Browse files

drm: Distinguish no name from ENOMEM in set_unique()



If passing name == NULL to drm_drv_set_unique() we now get -ENOMEM
as kstrdup() returns NULL. Instead check for this explicitly and
return -EINVAL if no name is provided.

Signed-off-by: default avatarTom Gundersen <teg@jklm.no>
Signed-off-by: default avatarSean Paul <seanpaul@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20160921145919.13754-1-teg@jklm.no
parent f566911a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment