svm: fix mq coverity warning

Type: fix

Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I1914366c17fa05305d57d842793fad372319256a
diff --git a/MAINTAINERS b/MAINTAINERS
index ea5a28d..6003a81 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -532,7 +532,7 @@
 Plugin - Unit Tests
 I:	unittest
 M:	Dave Barach <vpp@barachs.net>
-M:	Florin Coras <fcoras@cisco.com
+M:	Florin Coras <fcoras@cisco.com>
 F:	src/plugins/unittest/
 
 Test Infrastructure
diff --git a/src/svm/message_queue.c b/src/svm/message_queue.c
index b423826..8be6be7 100644
--- a/src/svm/message_queue.c
+++ b/src/svm/message_queue.c
@@ -570,8 +570,13 @@
 
       tv.tv_sec = (u64) timeout;
       tv.tv_usec = ((u64) timeout - (u64) timeout) * 1e9;
-      setsockopt (mq->q.evtfd, SOL_SOCKET, SO_RCVTIMEO, (const char *) &tv,
-		  sizeof tv);
+      rv = setsockopt (mq->q.evtfd, SOL_SOCKET, SO_RCVTIMEO,
+		       (const char *) &tv, sizeof tv);
+      if (rv < 0)
+	{
+	  clib_unix_warning ("setsockopt");
+	  return -1;
+	}
 
       rv = read (mq->q.evtfd, &buf, sizeof (buf));
       if (rv < 0)