[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <8cd011a2-67af-47bd-a05a-905eb333180b@web.de>
Date: Mon, 31 Mar 2025 18:15:46 +0200
From: Markus Elfring <Markus.Elfring@....de>
To: Henry Martin <bsdhenrymartin@...il.com>, linux-aspeed@...ts.ozlabs.org,
linux-arm-kernel@...ts.infradead.org
Cc: LKML <linux-kernel@...r.kernel.org>,
Andrew Jeffery <andrew@...econstruct.com.au>, Arnd Bergmann <arnd@...db.de>,
Gabriel Somlo <gsomlo@...il.com>, Herve Codina <herve.codina@...tlin.com>,
Joel Stanley <joel@....id.au>,
Uwe Kleine-König <u.kleine-koenig@...libre.com>
Subject: Re: [PATCH v3] drivers/misc: Add NULL check in
aspeed_lpc_enable_snoop
> devm_kasprintf() returns NULL if memory allocation fails. Currently,
…
call? failed?
> The corrected code adds error checking and optimizes resource release logic
…
See also once more:
https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.14#n94
An other subsystem specification might be more desirable.
https://web.git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/log/drivers/soc/aspeed/aspeed-lpc-snoop.c?h=next-20250331
* May the array access be simplified another bit here?
* How do you think about to store a pointer to a corresponding data structure member
in an additional local variable?
Regards,
Markus
Powered by blists - more mailing lists