[PATCH] net/af_packet: fix crash in secondary process
Kerem Aksu
kerem.aksu at i2i-systems.com
Fri Sep 12 13:14:48 CEST 2025
> Probably no need to go on the next line, you are allowed to go to 100
characters per line.
> If a second line is needed, only 2 tabs are required.
>
> Why zmalloc? Probably no need to zero it.
I figured since it was only IFNAMSIZ bytes it wouldn't matter because
this will run once at startup. I can use rte_malloc instead.
> We can use a string-specialized function, like strlcpy.
I used memcpy because it was used before this line for the same exact job.
Will post another patch with rte_malloc and strlcpy.
--
Yasal Uyarı: *Bu elektronik posta bu linki kullanarak ulaşabileceğiniz
koşullara tabidir:** **https://i2i-systems.com/email-disclaimer/
<http://i2i-systems.com/about-us/email-disclaimer/>*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/dev/attachments/20250912/75cb5d53/attachment.htm>
More information about the dev
mailing list