mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
selftests/net: in rxtimestamp getopt_long needs terminating null entry
[ Upstream commit 865a6cbb2288f8af7f9dc3b153c61b7014fdcf1e ]
getopt_long requires the last element to be filled with zeros.
Otherwise, passing an unrecognized option can cause a segfault.
Fixes: 16e7812241 ("selftests/net: Add a test to validate behavior of rx timestamps")
Signed-off-by: Tanner Love <[email protected]>
Acked-by: Willem de Bruijn <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
05e275d874
commit
57bad9e291
1 changed files with 1 additions and 0 deletions
|
|
@ -115,6 +115,7 @@ static struct option long_options[] = {
|
|||
{ "tcp", no_argument, 0, 't' },
|
||||
{ "udp", no_argument, 0, 'u' },
|
||||
{ "ip", no_argument, 0, 'i' },
|
||||
{ NULL, 0, NULL, 0 },
|
||||
};
|
||||
|
||||
static int next_port = 19999;
|
||||
|
|
|
|||
Loading…
Reference in a new issue