mirror of
https://github.com/torvalds/linux.git
synced 2024-11-20 11:01:38 +00:00
drm/nv31/mpeg: fix mpeg engine initialization
object->engine is null, which leads to a null deref down the line Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
921837634d
commit
18f35fa658
@ -265,8 +265,8 @@ nv31_mpeg_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
|
||||
int
|
||||
nv31_mpeg_init(struct nouveau_object *object)
|
||||
{
|
||||
struct nouveau_engine *engine = nv_engine(object->engine);
|
||||
struct nv31_mpeg_priv *priv = (void *)engine;
|
||||
struct nouveau_engine *engine = nv_engine(object);
|
||||
struct nv31_mpeg_priv *priv = (void *)object;
|
||||
struct nouveau_fb *pfb = nouveau_fb(object);
|
||||
int ret, i;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user