Просмотр исходного кода

V4L/DVB: dib7000p: reduce large stack usage fix

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Andrew Morton 15 лет назад
Родитель
Сommit
0b42760a75
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      drivers/media/dvb/frontends/dib7000p.c

+ 1 - 1
drivers/media/dvb/frontends/dib7000p.c

@@ -1330,7 +1330,7 @@ int dib7000p_i2c_enumeration(struct i2c_adapter *i2c, int no_of_demods, u8 defau
 
 
 	dpst = kzalloc(sizeof(struct dib7000p_state), GFP_KERNEL);
 	dpst = kzalloc(sizeof(struct dib7000p_state), GFP_KERNEL);
 	if (!dpst)
 	if (!dpst)
-		return -ENODEV;
+		return -ENOMEM;
 
 
 	dpst->i2c_adap = i2c;
 	dpst->i2c_adap = i2c;