Files
linux/drivers/misc
Colin Ian King b4e964f84c habanalabs/gaudi: Fix uninitialized return code rc when read size is zero
In the case where size is zero the while loop never assigns rc and the
return value is uninitialized. Fix this by initializing rc to zero.

Fixes: 639781dcab ("habanalabs/gaudi: add debugfs to DMA from the device")
Reviewed-by: Oded Gabbay <[email protected]>
Acked-by: Arnd Bergmann <[email protected]>
Signed-off-by: Colin Ian King <[email protected]>
Addresses-Coverity: ("Uninitialized scalar variable")
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2021-04-16 07:26:50 +02:00
..
2021-04-14 21:05:59 +02:00
…
…
2020-07-23 12:56:49 +02:00
2021-03-02 22:41:23 +11:00
…
…
…
…
…