Message ID | 1299803678.13462.14.camel@localhost (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
diff --git a/drivers/media/video/cx18/cx18-scb.c b/drivers/media/video/cx18/cx18 index fd89ad0..d17ffc8 100644 --- a/drivers/media/video/cx18/cx18-scb.c +++ b/drivers/media/video/cx18/cx18-scb.c @@ -28,8 +28,8 @@ int cx18_scb_init_mdl_ent_mgmt(struct cx18 *cx) { - cx->scb_mdl_ent_map = kzalloc(BITS_TO_LONGS(SCB_MDL_ENTRIES), - GFP_KERNEL); + cx->scb_mdl_ent_map = kzalloc(BITS_TO_LONGS(SCB_MDL_ENTRIES) + * sizeof(long), GFP_KERNEL); if (cx->scb_mdl_ent_map == NULL) { CX18_ERR("Fatal: unable to allocate bitmap for managing SCB MDL" "entries\n");