mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* drivers/media/dvb/dvb-core/dvb_net.c: check-after-use
@ 2007-06-15 21:00 Adrian Bunk
  2007-06-15 23:58 ` [v4l-dvb-maintainer] " Trent Piepho
  0 siblings, 1 reply; 2+ messages in thread
From: Adrian Bunk @ 2007-06-15 21:00 UTC (permalink / raw)
  To: Michal CIJOML Semler, Markus Rechberger, Mauro Carvalho Chehab
  Cc: linux-kernel, v4l-dvb-maintainer

The Coverity checker spotted the following obvious check-after-use in 
drivers/media/dvb/dvb-core/dvb_net.c:

<--  snip  -->

...
static int dvb_net_close(struct inode *inode, struct file *file)
{
...
        struct dvb_net *dvbnet = dvbdev->priv;

        if (!dvbdev)
                return -ENODEV;
...

<--  snip  -->


cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-06-15 23:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-15 21:00 drivers/media/dvb/dvb-core/dvb_net.c: check-after-use Adrian Bunk
2007-06-15 23:58 ` [v4l-dvb-maintainer] " Trent Piepho

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome