kernel-fxtec-pro1x/drivers/media/radio
Tobias Lorenz c3f686f152 V4L/DVB (7108): radio-si470x.c: check-after-use
Adrian used the coverity checker against radio-si470x and found this:

> The Coverity checker spotted the following check-after-use in
> drivers/media/radio/radio-si470x.c:
>
> <--  snip  -->
> static void si470x_usb_driver_disconnect(struct usb_interface *intf)
> {
>         struct si470x_device *radio = usb_get_intfdata(intf);
>
>         del_timer_sync(&radio->timer);    <------------------
>         flush_scheduled_work();
>
>         usb_set_intfdata(intf, NULL);
>         if (radio) {                      <------------------
>                 video_unregister_device(radio->videodev);
>                 kfree(radio->buffer);
>                 kfree(radio);
>         }
> }
> <--  snip  -->
>
> Either "radio" can be NULL and this case has to be properly handled or
> the NULL check is not required.

These two lines should indeed better be inside the if statement.

Signed-off-by: Tobias Lorenz <tobias.lorenz@gmx.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-02-18 11:15:09 -03:00
..
dsbr100.c V4L/DVB (6732): dsbr100 violates DMA coherency rules 2008-01-25 19:03:14 -02:00
Kconfig V4L/DVB (7133): Fix Kconfig dependencies 2008-02-18 11:14:53 -03:00
Makefile V4L/DVB (7047): fix broken build when CONFIG_USB_SI470X is set 2008-01-25 19:05:08 -02:00
miropcm20-radio.c V4L/DVB (6320): v4l core: remove the unused .hardware V4L1 field 2007-10-22 12:01:24 -02:00
miropcm20-rds-core.c
miropcm20-rds-core.h
miropcm20-rds.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
radio-aimslab.c V4L/DVB (5857): Use msecs_to_jiffies instead of HZ on radio drivers 2007-07-20 17:35:47 -03:00
radio-aztech.c V4L/DVB (5705): Removed unnecessary .hardware from video_device struct. 2007-07-18 14:23:47 -03:00
radio-cadet.c V4L/DVB (5857): Use msecs_to_jiffies instead of HZ on radio drivers 2007-07-20 17:35:47 -03:00
radio-gemtek-pci.c V4L/DVB (5877): radio-gemtek-pci: remove unused structure member 2007-07-20 17:35:56 -03:00
radio-gemtek.c V4L/DVB (6616): drivers/media/radio: Add missing "space" 2008-01-25 19:02:15 -02:00
radio-maestro.c V4L/DVB (7036): radio: Use video_device_release rather than kfree 2008-01-25 19:05:02 -02:00
radio-maxiradio.c V4L/DVB (5155): Properly initialize mute and radio frequency 2007-02-21 13:35:08 -02:00
radio-rtrack2.c V4L/DVB (5705): Removed unnecessary .hardware from video_device struct. 2007-07-18 14:23:47 -03:00
radio-sf16fmi.c V4L/DVB (7093): radio-sf16fmi: fix request_region() 2008-02-18 11:14:59 -03:00
radio-sf16fmr2.c V4L/DVB (7092): radio-sf16fmr2: fix request_region() validation [bugzilla 9699] 2008-02-18 11:14:59 -03:00
radio-si470x.c V4L/DVB (7108): radio-si470x.c: check-after-use 2008-02-18 11:15:09 -03:00
radio-terratec.c V4L/DVB (6125): whitespace cleanup: replace leading spaces with tabs 2007-10-09 22:07:29 -03:00
radio-trust.c V4L/DVB (5705): Removed unnecessary .hardware from video_device struct. 2007-07-18 14:23:47 -03:00
radio-typhoon.c V4L/DVB (5705): Removed unnecessary .hardware from video_device struct. 2007-07-18 14:23:47 -03:00
radio-zoltrix.c V4L/DVB (5622): Radio-zoltrix.c cleanup 2007-05-09 10:13:07 -03:00