Re: fbdev: arkfb: Move a variable assignment behind a condition check in ics5342_init()
Uwe Kleine-König <[email protected]> Sat, 18 Jul 2026 23:47:47 +0200
| Newsgroups | org.kernel.vger.linux-fbdev,org.freedesktop.lists.dri-devel,org.kernel.vger.kernel-janitors,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <alvzxjwBr1gxu3Eb@monoceros> |
Hallo Markus, On Sat, Jul 18, 2026 at 10:34:33PM +0200, Markus Elfring wrote: > >> The address of a data structure member was determined before > >> a corresponding null pointer check in the implementation of > >> the function “ics5342_init”. > >> > >> Thus avoid the risk for undefined behaviour by moving the assignment > >> for the variable “info” behind a condition check. > >> > >> This issue was detected by using the Coccinelle software. > > > > There is no "risk" here. > > It just adds an offset to a potential NULL value (which isn't then used afterwards). > Does your understanding of programming language details differ from the view of > SEI CERT C Coding Standard (from the Carnegie Mellon University)? > https://cmu-sei.github.io/secure-coding-standards/sei-cert-c-coding-standard/rules/expressions-exp/exp34-c/ We recently discussed a similar case where several people told you that the "problem" you fixed wasn't actually a problem. This patch is in the same category and your reference doesn't match the code touched here. Please stop to absorb maintainer attention with useless stuff. Uwe
signature.asc
(application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmpb9IAACgkQj4D7WH0S /k4yugf/X7EoA2Tt7mChQ8eG4wWf3eTDK6E37TtKWLPT3R1witunWCOP7nOhxZc3 D139hRqc3qXlbwDBHpZTY0c+y7G2EE/7aBrnnhF73GmWLJaSb+CQ2WVCbUuMJ4kC qPGNY/7HaxPwlylhjJSxmeBt1JtxWDy6qAOgR78JEDzCVSN9+aWL5fFL3SFQOJhR OjLghlkWaKckJbm//CWA3NLVNHAgFZq58ozqVfTKmXKmKqvYH+iARxU8+V8jfPyV nFaA9mHT7NuhT+oLzm6orz0tQTgvszXI6SpaGBxiXoe1gbvexg+4MArqV19Gb11W 7j6X45B9ImkYY6zrD6JK3heICJiHbA== =5CWK -----END PGP SIGNATURE-----