diff options
author | Jean-Francois Moine <moinejf@free.fr> | 2009-01-20 20:21:44 +0100 |
---|---|---|
committer | Jean-Francois Moine <moinejf@free.fr> | 2009-01-20 20:21:44 +0100 |
commit | f88d225f8dce1992c01bb023055f4b626861663c (patch) | |
tree | 2a546289df790efee5baf7d7767bca07d0bf1b9a /linux/drivers/media/video | |
parent | 7eeca606e6f069419f33e54b3eda52bfe545bc43 (diff) | |
download | mediapointer-dvb-s2-f88d225f8dce1992c01bb023055f4b626861663c.tar.gz mediapointer-dvb-s2-f88d225f8dce1992c01bb023055f4b626861663c.tar.bz2 |
gspca - main: Avoid error on set interface on disconnection.
From: Jean-Francois Moine <moinejf@free.fr>
Priority: normal
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Diffstat (limited to 'linux/drivers/media/video')
-rw-r--r-- | linux/drivers/media/video/gspca/gspca.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/linux/drivers/media/video/gspca/gspca.c b/linux/drivers/media/video/gspca/gspca.c index ed129db3d..f5fad6905 100644 --- a/linux/drivers/media/video/gspca/gspca.c +++ b/linux/drivers/media/video/gspca/gspca.c @@ -675,7 +675,8 @@ static void gspca_stream_off(struct gspca_dev *gspca_dev) && gspca_dev->sd_desc->stopN) gspca_dev->sd_desc->stopN(gspca_dev); destroy_urbs(gspca_dev); - gspca_set_alt0(gspca_dev); + if (gspca_dev->present) + gspca_set_alt0(gspca_dev); if (gspca_dev->sd_desc->stop0) gspca_dev->sd_desc->stop0(gspca_dev); PDEBUG(D_STREAM, "stream off OK"); |