diff options
-rw-r--r-- | linux/drivers/media/dvb/ttpci/budget-patch.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/ttpci/budget-patch.c b/linux/drivers/media/dvb/ttpci/budget-patch.c index 5ce7e02c4..0eb9c8eae 100644 --- a/linux/drivers/media/dvb/ttpci/budget-patch.c +++ b/linux/drivers/media/dvb/ttpci/budget-patch.c @@ -165,7 +165,8 @@ static int budget_patch_attach (struct saa7146_dev* dev, struct saa7146_pci_exte { struct budget_patch *budget; int err; - + int count = 0; + if (!(budget = kmalloc (sizeof(struct budget_patch), GFP_KERNEL))) return -ENOMEM; |