mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-22 10:48:02 +00:00
bhnd: Correct the softc size in the siba_bhndb_driver definition
struct siba_bhndb_softc embeds struct siba_softc and adds an extra field, "quirks". In practice, this bug was harmless since "quirks" is unconditionally initialized during driver attach and would have lived in the redzone of the softc allocation, but KASAN catches the out-of-bounds access. PR: 275515 Reported by: Frank Hilgendorf <frank.hilgendorf@posteo.de> MFC after: 1 week
This commit is contained in:
parent
6284d5f76d
commit
4c3aa00c0a
|
@ -285,7 +285,7 @@ static device_method_t siba_bhndb_methods[] = {
|
|||
};
|
||||
|
||||
DEFINE_CLASS_2(bhnd, siba_bhndb_driver, siba_bhndb_methods,
|
||||
sizeof(struct siba_softc), bhnd_bhndb_driver, siba_driver);
|
||||
sizeof(struct siba_bhndb_softc), bhnd_bhndb_driver, siba_driver);
|
||||
|
||||
DRIVER_MODULE(siba_bhndb, bhndb, siba_bhndb_driver, NULL, NULL);
|
||||
|
||||
|
|
Loading…
Reference in a new issue