Calling this function with a NULL object is simply a bug, so papering
over a NULL object not a good idea.
Change-Id: I412d7ced57a75fd5281d05d584092df9bc420408 Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Dave Airlie <airlied@redhat.com>