diff options
| author | Tom Gundersen <[email protected]> | 2016-09-21 14:59:18 +0000 |
|---|---|---|
| committer | Sean Paul <[email protected]> | 2016-09-22 11:03:42 +0000 |
| commit | c6bf811a0b55ab224fb2c75345641b4bb599475c (patch) | |
| tree | f7da9bef6b7d107efd85ede18571e5e76c9c612a /drivers/gpu/drm/drm_pci.c | |
| parent | drm: Remove dirty property from docs (diff) | |
| download | kernel-c6bf811a0b55ab224fb2c75345641b4bb599475c.tar.gz kernel-c6bf811a0b55ab224fb2c75345641b4bb599475c.zip | |
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: Tom Gundersen <[email protected]>
Signed-off-by: Sean Paul <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/drm_pci.c')
0 files changed, 0 insertions, 0 deletions
