drm: fix NULL pointer access by wrong ioctl