Re: [linux-yocto][v6.1/standard/nxp-sdk-6.1/nxp-soc & v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc][PATCH] net: Add judgment on fast_raw_socket_fd

2024-05-22 Thread Bruce Ashfield
merged. Bruce In message: [linux-yocto][v6.1/standard/nxp-sdk-6.1/nxp-soc & v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc][PATCH] net: Add judgment on fast_raw_socket_fd on 20/05/2024 Xiaolei Wang wrote: > A bug was introduced by commit 20932f1f83d3 ("fec_ecat: add fec native >

[linux-yocto][v6.1/standard/nxp-sdk-6.1/nxp-soc & v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc][PATCH] net: Add judgment on fast_raw_socket_fd

2024-05-20 Thread Xiaolei Wang via lists.yoctoproject.org
A bug was introduced by commit 20932f1f83d3 ("fec_ecat: add fec native driver for raw packet proto"). When both fd and fast_raw_socket_fd are -1, the fast_raw_socket_dev would be null, then it will perform a null pointer operation and causes the following oops. The fast_raw_socket_dev is only set