[media] vb2: don't free alloc context if it is ERR_PTR
authorHans Verkuil <hans.verkuil@cisco.com>
Tue, 18 Nov 2014 12:51:00 +0000 (09:51 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 25 Nov 2014 10:52:18 +0000 (08:52 -0200)
commite5ae8fa739f8a1d5c292c5b13fa33ac64166e5a0
treea6c2347cc669c293f70412f33780902317764340
parentd935c57e8fb6902a9ede603bb55d9e158f75f09a
[media] vb2: don't free alloc context if it is ERR_PTR

Don't try to free a pointer containing an ERR_PTR().

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Pawel Osciak <pawel@osciak.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/v4l2-core/videobuf2-dma-contig.c