]> git.baikalelectronics.ru Git - kernel.git/commit
[media] dvb-bt8xx: handle errors from dvb_net_init
authorJonathan Nieder <jrnieder@gmail.com>
Sat, 31 Dec 2011 11:06:37 +0000 (08:06 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 6 Jan 2012 14:49:18 +0000 (12:49 -0200)
commit14d5cc39bbd9ecf67911e53ba7179d15a2f1d79c
treecb2a7f0e508b6458e7a583b8a414e5d17b0b4c99
parentf36ef36a52fe1e9705bd687b3a9ae7acd8ab2fa2
[media] dvb-bt8xx: handle errors from dvb_net_init

Clean up and error out if dvb_net_init fails (for example when
running out of memory).

From an audit of dvb_net_init callers, now that dvb_net_init
has learned to return a nonzero value from time to time.

[mchehab.redhat.com: codingstyle fix: printk() should include KERN_ facility level]
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/bt8xx/dvb-bt8xx.c