akpm@xxxxxxxxxxxxxxxxxxxx wrote: > diff -puN drivers/media/dvb/frontends/dib7000p.c~dib7000p-reduce-large-stack-usage drivers/media/dvb/frontends/dib7000p.c > --- a/drivers/media/dvb/frontends/dib7000p.c~dib7000p-reduce-large-stack-usage > +++ a/drivers/media/dvb/frontends/dib7000p.c > @@ -1324,46 +1324,54 @@ EXPORT_SYMBOL(dib7000p_pid_filter); > > int dib7000p_i2c_enumeration(struct i2c_adapter *i2c, int no_of_demods, u8 default_addr, struct dib7000p_config cfg[]) > { > - struct dib7000p_state st = { .i2c_adap = i2c }; > + struct dib7000p_state *dpst; > int k = 0; > u8 new_addr = 0; > > + dpst = kzalloc(sizeof(struct dib7000p_state), GFP_KERNEL); > + if (!dpst) > + return -ENODEV; I think ENOMEM would be appropriate here. The same applies to patch 01/11. Regards, Andreas -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html