Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[media] mb86a20s: always initialize a return value
In mb86a20s_read_status_and_stats(), when mb86a20s_read_status() fails, the function returns the value in variable rc without initializing it first. Fix this by propagating the error code from variable status_nr. This bug has been found using clang and -Wsometimes-uninitialized warning flag. Signed-off-by: Nicolas Iooss <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
- Loading branch information