aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video
diff options
context:
space:
mode:
authorMike Isely <isely@pobox.com>2007-01-19 22:02:26 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-02-21 10:34:37 -0500
commit6710fb868b289d21139bd68262388e0ea34601eb (patch)
tree5db5bd8c7e463593b6e0b06e12c511239764396e /drivers/media/video
parente5bd0260e7d3d806e66c12859f50733dca43bbcf (diff)
V4L/DVB (5078): Pvrusb2: It's safe to kfree() a null pointer
Signed-off-by: Mike Isely <isely@pobox.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video')
-rw-r--r--drivers/media/video/pvrusb2/pvrusb2-v4l2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-v4l2.c b/drivers/media/video/pvrusb2/pvrusb2-v4l2.c
index 0ecad5b3c029..4c2e4defd71e 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-v4l2.c
+++ b/drivers/media/video/pvrusb2/pvrusb2-v4l2.c
@@ -1189,8 +1189,8 @@ struct pvr2_v4l2 *pvr2_v4l2_create(struct pvr2_context *mnp)
1189 vp->dev_video = kmalloc(sizeof(*vp->dev_video),GFP_KERNEL); 1189 vp->dev_video = kmalloc(sizeof(*vp->dev_video),GFP_KERNEL);
1190 vp->dev_radio = kmalloc(sizeof(*vp->dev_radio),GFP_KERNEL); 1190 vp->dev_radio = kmalloc(sizeof(*vp->dev_radio),GFP_KERNEL);
1191 if (!(vp->dev_video && vp->dev_radio)) { 1191 if (!(vp->dev_video && vp->dev_radio)) {
1192 if (vp->dev_video) kfree(vp->dev_video); 1192 kfree(vp->dev_video);
1193 if (vp->dev_radio) kfree(vp->dev_radio); 1193 kfree(vp->dev_radio);
1194 kfree(vp); 1194 kfree(vp);
1195 return NULL; 1195 return NULL;
1196 } 1196 }