drm/nouveau/disp: sizeof() wrong pointer
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 23 Jan 2013 08:27:56 +0000 (11:27 +0300)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 20 Feb 2013 06:00:54 +0000 (16:00 +1000)
commitaf1ac18a19b80f922046fd383a3a3e780ee94915
treee2ec7c6def1b7f315006e24b4d2745cdd7d0954a
parent264ce192b3e7f45d0adb37bfbab2b01a3fbe6c30
drm/nouveau/disp: sizeof() wrong pointer

"data" is a void pointer and "args" is "data" after we have casted it to
a struct.  We care about the size of the struct here.  Btw,
sizeof(*data) is 1.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/engine/disp/nv50.c
drivers/gpu/drm/nouveau/core/engine/disp/nvd0.c