diff mbox

[1/2] "dib3000mc: reduce large stack usage" fix

Message ID 201007202222.o6KMMg3M021241@imap1.linux-foundation.org (mailing list archive)
State Accepted
Headers show

Commit Message

Andrew Morton July 20, 2010, 10:22 p.m. UTC
None
diff mbox

Patch

diff -puN drivers/media/dvb/frontends/dib3000mc.c~dib3000mc-reduce-large-stack-usage-fix drivers/media/dvb/frontends/dib3000mc.c
--- a/drivers/media/dvb/frontends/dib3000mc.c~dib3000mc-reduce-large-stack-usage-fix
+++ a/drivers/media/dvb/frontends/dib3000mc.c
@@ -822,7 +822,7 @@  int dib3000mc_i2c_enumeration(struct i2c
 
 	dmcst = kzalloc(sizeof(struct dib3000mc_state), GFP_KERNEL);
 	if (dmcst == NULL)
-		return -ENODEV;
+		return -ENOMEM;
 
 	dmcst->i2c_adap = i2c;