mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-02-22 17:13:08 +07:00
b43: N-PHY: handle allocation fail in samples generation
Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
5f6393ecf5
commit
40bd5203dd
@ -1069,6 +1069,10 @@ static u16 b43_nphy_gen_load_samples(struct b43_wldev *dev, u32 freq, u16 max,
|
||||
}
|
||||
|
||||
samples = kzalloc(len * sizeof(struct b43_c32), GFP_KERNEL);
|
||||
if (!samples) {
|
||||
b43err(dev->wl, "allocation for samples generation failed\n");
|
||||
return 0;
|
||||
}
|
||||
rot = (((freq * 36) / bw) << 16) / 100;
|
||||
angle = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user