summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorPatrick Boettcher <devnull@localhost>2004-08-08 08:56:35 +0000
committerPatrick Boettcher <devnull@localhost>2004-08-08 08:56:35 +0000
commit4ea97196b8455b40bd9668e03df2e31a44ece085 (patch)
treecfc0b77f88ddccd9564f7a05421bfd1a6dd80eee /linux
parent72d4781a731b791d9f3845d08139a6946c991875 (diff)
downloadmediapointer-dvb-s2-4ea97196b8455b40bd9668e03df2e31a44ece085.tar.gz
mediapointer-dvb-s2-4ea97196b8455b40bd9668e03df2e31a44ece085.tar.bz2
corrected check for -ENOMEM when doing kmalloc in dvb_dummy_fe.
Diffstat (limited to 'linux')
-rw-r--r--linux/drivers/media/dvb/frontends/dvb_dummy_fe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/frontends/dvb_dummy_fe.c b/linux/drivers/media/dvb/frontends/dvb_dummy_fe.c
index d37a4e28f..c9160922d 100644
--- a/linux/drivers/media/dvb/frontends/dvb_dummy_fe.c
+++ b/linux/drivers/media/dvb/frontends/dvb_dummy_fe.c
@@ -179,7 +179,7 @@ static int dvbdummyfe_attach_adapter(struct i2c_adapter *adapter)
struct i2c_client *client;
int ret;
- if ((client = kmalloc(sizeof(struct i2c_client), GFP_KERNEL)))
+ if ((client = kmalloc(sizeof(struct i2c_client), GFP_KERNEL)) == NULL)
return -ENOMEM;
memcpy(client, &client_template, sizeof(struct i2c_client));