V4L/DVB: dib7000p: reduce large stack usage fix
authorAndrew Morton <akpm@linux-foundation.org>
Tue, 27 Apr 2010 22:09:45 +0000 (19:09 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 19 May 2010 15:58:31 +0000 (12:58 -0300)
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/frontends/dib7000p.c

index 113fc13..2e28b97 100644 (file)
@@ -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);
        if (!dpst)
-               return -ENODEV;
+               return -ENOMEM;
 
        dpst->i2c_adap = i2c;