Re: [PATCH] sentinel_ctltable: Add a check for sentinel elements in ctl_table arrays
Dan Carpenter <[email protected]> Fri, 14 Jun 2024 16:28:52 +0300
| Newsgroups | org.kernel.vger.smatch,org.kernel.vger.linux-sparse |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Jun 14, 2024 at 02:29:41PM +0200, Joel Granados via B4 Relay wrote: > From: Joel Granados <[email protected]> > > Added a new check named check_sentinel_ctltable that prints a warning > when a sentinel element is detected in a ctl_table struct array. > Sentinels marking the end of a ctl_table array where completely removed > from the linux kernel in [1]. We add this warning to avoid cases where a > sentinel gets added by mistake. > > [1] https://lore.kernel.org/[email protected] > > Signed-off-by: Joel Granados <[email protected]> > --- Applied, thanks! regards, dan carpenter