mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-04-22 13:00:41 +02:00
drm: fix oops on reading proc file with no master
This commit is contained in:
parent
dce3442194
commit
8f7fc880e8
1 changed files with 3 additions and 0 deletions
|
|
@ -175,6 +175,9 @@ static int drm_name_info(char *buf, char **start, off_t offset, int request,
|
|||
return 0;
|
||||
}
|
||||
|
||||
if (!master)
|
||||
return 0;
|
||||
|
||||
*start = &buf[offset];
|
||||
*eof = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue