Message ID | 1417623059-15183-1-git-send-email-kaike.wan@intel.com (mailing list archive) |
---|---|
State | Rejected |
Headers | show |
Thanks - applied this one plus the other three Please ignore my other email comment. -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/src/acm_util.c b/src/acm_util.c index 50b46d8..d54f520 100644 --- a/src/acm_util.c +++ b/src/acm_util.c @@ -148,7 +148,7 @@ int acm_if_iter_sys(acm_if_iter_cb cb, void *ctx) } memset(ifc, 0, len); - ifc->ifc_len = len; + ifc->ifc_len = len - sizeof(*ifc); ifc->ifc_req = (struct ifreq *) (ifc + 1); ret = ioctl(s, SIOCGIFCONF, ifc);