[lvc-project] [PATCH] rtc: fix error checking in wdt_disable()
    Markus Elfring 
    Markus.Elfring at web.de
       
    Fri Oct  3 16:50:33 MSK 2025
    
    
  
> The i2c_transfer() function may return an error.
> Ignoring errors returned by functions is bad practice.
See also:
https://cwe.mitre.org/data/definitions/252.html
…
> If the second function call succeeds, data corruption will occur.
Should the function return values be checked for both passed messages?
* Would a corresponding imperative wording become helpful for an improved change description?
  https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.17#n94
* How do you think about to add any tags (like “Fixes” and “Cc”) accordingly?
Regards,
Markus
    
    
More information about the lvc-project
mailing list