The potential uninitialized variables used in function isc_interrupt()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Eugen:

In function isc_interrupt(), variable "isc_intsr" and "isc_intmask"
(drivers/media/platform/atmel/atmel-isc-base.c)
could be uninitialized if regmap_read() fails and return -EINVAL .
However, they are used to decide the control flow later in the if
 statement, which is potentially unsafe.

We cannot simply return -EINVAL in isc_interrupt() because it is
out of the return type: irqreturn_t.

Thanks for your time to check this case.

-- 
Kind Regards,

Yizhuo Zhai

Computer Science, Graduate Student
University of California, Riverside



[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux