diff options
-rw-r--r-- | linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c b/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c index 8da06d216..897f547e5 100644 --- a/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c +++ b/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c @@ -1944,9 +1944,9 @@ int pvr2_hdw_get_stdenum_value(struct pvr2_hdw *hdw, { int ret = -EINVAL; if (!idx) return ret; - idx--; LOCK_TAKE(hdw->big_lock); do { if (idx >= hdw->std_enum_cnt) break; + idx--; memcpy(std,hdw->std_defs+idx,sizeof(*std)); ret = 0; } while (0); LOCK_GIVE(hdw->big_lock); |