diff options
author | Sai Krishna <[email protected]> | 2023-07-06 13:59:36 +0530 |
---|---|---|
committer | David S. Miller <[email protected]> | 2023-07-07 09:08:57 +0100 |
commit | 7709fbd4922c197efabda03660d93e48a3e80323 (patch) | |
tree | 72936cca36d6c703d7b377b8504e7cd871cec61c /drivers/net/dsa/dsa_loop.c | |
parent | af42088bdaf292060b8d8a00d8644ca7b2b3f2d1 (diff) |
octeontx2-af: Move validation of ptp pointer before its usage
Moved PTP pointer validation before its use to avoid smatch warning.
Also used kzalloc/kfree instead of devm_kzalloc/devm_kfree.
Fixes: 2ef4e45d99b1 ("octeontx2-af: Add PTP PPS Errata workaround on CN10K silicon")
Signed-off-by: Naveen Mamindlapalli <[email protected]>
Signed-off-by: Sunil Goutham <[email protected]>
Signed-off-by: Sai Krishna <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/dsa/dsa_loop.c')
0 files changed, 0 insertions, 0 deletions