Potential uninitialized variables in rtc: ds1343

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

 



Hi All:
drivers/rtc/rtc-ds1343.c:
Inside function ds1343_show_glitchfilter(), variable "data" could be
uninitialized if regmap_read() returns -EINVAL. However,"data"
is used later in the if statement, which is potentially unsafe. Patch
for this case is hard since the return value -EINVAL is unacceptable
for ds1343_show_glitchfilter().

-- 
Kind Regards,

Yizhuo Zhai

Computer Science, Graduate Student
University of California, Riverside



[Index of Archives]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux