diff options
author | Jean-François Moine <moinejf@free.fr> | 2010-11-11 12:20:42 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-12-29 13:16:40 +0300 |
commit | d65174c06f2bf4ff73d1c71960be317b89561c06 (patch) | |
tree | 1af417af6221dfaaca05fad7ae59cf55bc8e3583 /drivers/media/video/gspca/ov519.c | |
parent | 14653e64e9db48e91cbd00fba335a6a459e66cc9 (diff) | |
download | linux-d65174c06f2bf4ff73d1c71960be317b89561c06.tar.xz |
[media] gspca - ov519: Don't do USB exchanges after disconnection
Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/gspca/ov519.c')
-rw-r--r-- | drivers/media/video/gspca/ov519.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/video/gspca/ov519.c b/drivers/media/video/gspca/ov519.c index 7e86faf12f5b..ed70229b0276 100644 --- a/drivers/media/video/gspca/ov519.c +++ b/drivers/media/video/gspca/ov519.c @@ -3937,6 +3937,8 @@ static void sd_stop0(struct gspca_dev *gspca_dev) { struct sd *sd = (struct sd *) gspca_dev; + if (!sd->gspca_dev.present) + return; if (sd->bridge == BRIDGE_W9968CF) w9968cf_stop0(sd); |