drm: fix oops on reading proc file with no master

This commit is contained in:
Dave Airlie 2008-05-12 16:28:40 +10:00
parent dce3442194
commit 8f7fc880e8

View file

@ -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;