gpu: pvr: fix error path in PVRSRVRegisterBCDeviceKM
authorImre Deak <imre.deak@nokia.com>
Tue, 29 Mar 2011 17:18:27 +0000 (20:18 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Sun, 20 May 2012 18:43:04 +0000 (21:43 +0300)
commitf2ecda190a7cee965e0b0ab42d82e99b229d0ed6
tree5d87fcd86148e4b2729f51e1a6b908ae54ccd9f3
parent8716a5785ee7ead23eebc8991046e744f9c7d36d
gpu: pvr: fix error path in PVRSRVRegisterBCDeviceKM

Fixing a free with incorrect size and converting another one to use
free(p, sizeof(*p)) instead of free(p, sizeof(typeof(*p)).

Reported-by: Coverity
Signed-off-by: Imre Deak <imre.deak@nokia.com>
Reviewed-by: Pauli Nieminen <ext-pauli.nieminen@nokia.com>
pvr/deviceclass.c