diff options
author | Navdeep Parhar <np@FreeBSD.org> | 2017-03-25 01:45:04 +0000 |
---|---|---|
committer | Navdeep Parhar <np@FreeBSD.org> | 2017-03-25 01:45:04 +0000 |
commit | d4ce83cd3612f1c865bc31cc4accee95ec1413c6 (patch) | |
tree | b97c80ff14dea039acfc9cdc3e62d52f5603c31c /sys/dev/cxgbe | |
parent | a8d61a0a7badb59adb5f7221616190f641224188 (diff) | |
download | src-d4ce83cd3612f1c865bc31cc4accee95ec1413c6.tar.gz src-d4ce83cd3612f1c865bc31cc4accee95ec1413c6.zip |
cxgbe/iw_cxgbe: alloc_ep expects a gfp_t, and it's always ok to sleep during
alloc_ep.
Notes
Notes:
svn path=/head/; revision=315921
Diffstat (limited to 'sys/dev/cxgbe')
-rw-r--r-- | sys/dev/cxgbe/iw_cxgbe/cm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/cxgbe/iw_cxgbe/cm.c b/sys/dev/cxgbe/iw_cxgbe/cm.c index aef4a70dbb5d..42a29b124ec8 100644 --- a/sys/dev/cxgbe/iw_cxgbe/cm.c +++ b/sys/dev/cxgbe/iw_cxgbe/cm.c @@ -695,7 +695,7 @@ process_newconn(struct iw_cm_id *parent_cm_id, struct socket *child_so) 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, struct iw_cm_conn_param *conn_param) err = -EINVAL; goto out; } - ep = alloc_ep(sizeof(*ep), M_NOWAIT); + ep = alloc_ep(sizeof(*ep), GFP_KERNEL); if (!ep) { |