summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2022-11-21 03:22:01 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-12-14 13:32:00 +0300
commit0a8e66e375736ea12c11f0ef238ba2a8efec460b (patch)
tree8e1c92d4318a08e121dd633d4bcd0289a1202495 /net
parent27c71825ffc4010dceaa935b673feff809f704d5 (diff)
downloadlinux-0a8e66e375736ea12c11f0ef238ba2a8efec460b.tar.xz
ca8210: Fix crash by zero initializing data
[ Upstream commit 1e24c54da257ab93cff5826be8a793b014a5dc9c ] The struct cas_control embeds multiple generic SPI structures and we have to make sure these structures are initialized to default values. This driver does not set all attributes. When using kmalloc before some attributes were not initialized and contained random data which caused random crashes at bootup. Fixes: ded845a781a5 ("ieee802154: Add CA8210 IEEE 802.15.4 device driver") Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Link: https://lore.kernel.org/r/20221121002201.1339636-1-hauke@hauke-m.de Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions