[PATCH 1/1] fat: initialize ret in disk_rw()

Tom Rini trini at konsulko.com
Mon May 4 22:36:16 CEST 2026


On Wed, 29 Apr 2026 17:54:18 +0200, Heinrich Schuchardt wrote:

> If fat_sect_size = 0 and nr_sect = 0, the value of ret is never intialized.
> A random return value is returned.
> 
> Initialize ret to 0.
> 
> 

Applied to u-boot/master, thanks!

[1/1] fat: initialize ret in disk_rw()
      commit: ba1209d7a756552677f07c207cdf7fac400a8b7c
-- 
Tom




More information about the U-Boot mailing list