0004-Fix-garbage-pointer-for-lat_rpc-S-localhost.patch 739 B

12345678910111213141516171819202122232425
  1. From 3830453a06269912d2772fe8c31bae44f27bb131 Mon Sep 17 00:00:00 2001
  2. From: Vineet Gupta <vgupta@synopsys.com>
  3. Date: Fri, 8 May 2015 11:35:58 +0530
  4. Subject: [PATCH] Fix garbage pointer for lat_rpc -S localhost
  5. Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
  6. ---
  7. src/lat_rpc.c | 1 +
  8. 1 file changed, 1 insertion(+)
  9. diff --git a/src/lat_rpc.c b/src/lat_rpc.c
  10. index 9c021926d761..ff4380ff38f3 100644
  11. --- a/src/lat_rpc.c
  12. +++ b/src/lat_rpc.c
  13. @@ -101,6 +101,7 @@ main(int ac, char **av)
  14. char *usage = "-s\n OR [-p <tcp|udp>] [-P parallel] [-W <warmup>] [-N <repetitions>] serverhost\n OR -S serverhost\n";
  15. state.msize = 1;
  16. + state.server = NULL;
  17. while (( c = getopt(ac, av, "sS:m:p:P:W:N:")) != EOF) {
  18. switch(c) {
  19. --
  20. 2.25.1