drm/nv50-: prepare for attaching a SOR to multiple heads
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
@@ -74,7 +74,7 @@ struct nouveau_crtc {
|
||||
|
||||
static inline struct nouveau_crtc *nouveau_crtc(struct drm_crtc *crtc)
|
||||
{
|
||||
return container_of(crtc, struct nouveau_crtc, base);
|
||||
return crtc ? container_of(crtc, struct nouveau_crtc, base) : NULL;
|
||||
}
|
||||
|
||||
static inline struct drm_crtc *to_drm_crtc(struct nouveau_crtc *crtc)
|
||||
|
Reference in New Issue
Block a user