Skip to contentSkip to conversation

drivers/media/video/usbvision/usbvision-video.c: negative array

DISCUSSION Adrian Bunk 1 participant 1 message Dec 18, 2006

lore
Share & tools
lore
#0 lore raw

index
Reply-To:
Fcc: =sent-mail

The Coverity checker spotted that in usbvision_v4l2_read(), the variable "frmx" is never assigned any value different from -1, but it's used an an array index in "usbvision->frame[frmx]".

cu
Adrian

Signature · 4 lines
       "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