Date: Sat, 25 Mar 2017 01:45:04 +0000 (UTC) From: Navdeep Parhar <np@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r315921 - head/sys/dev/cxgbe/iw_cxgbe Message-ID: <201703250145.v2P1j4Cj013726@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: np Date: Sat Mar 25 01:45:04 2017 New Revision: 315921 URL: https://svnweb.freebsd.org/changeset/base/315921 Log: cxgbe/iw_cxgbe: alloc_ep expects a gfp_t, and it's always ok to sleep during alloc_ep. Modified: head/sys/dev/cxgbe/iw_cxgbe/cm.c Modified: head/sys/dev/cxgbe/iw_cxgbe/cm.c ============================================================================== --- head/sys/dev/cxgbe/iw_cxgbe/cm.c Sat Mar 25 01:38:17 2017 (r315920) +++ head/sys/dev/cxgbe/iw_cxgbe/cm.c Sat Mar 25 01:45:04 2017 (r315921) @@ -695,7 +695,7 @@ process_newconn(struct iw_cm_id *parent_ MPASS(child_so != NULL); - child_ep = alloc_ep(sizeof(*child_ep), M_WAITOK); + child_ep = alloc_ep(sizeof(*child_ep), GFP_KERNEL); CTR5(KTR_IW_CXGBE, "%s: parent so %p, parent ep %p, child so %p, child ep %p", @@ -2134,7 +2134,7 @@ int c4iw_connect(struct iw_cm_id *cm_id, err = -EINVAL; goto out; } - ep = alloc_ep(sizeof(*ep), M_NOWAIT); + ep = alloc_ep(sizeof(*ep), GFP_KERNEL); if (!ep) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703250145.v2P1j4Cj013726>