diff options
author | Zheng Da <zhengda1936@gmail.com> | 2010-06-21 09:59:01 +0200 |
---|---|---|
committer | Zheng Da <zhengda1936@gmail.com> | 2010-06-21 09:59:01 +0200 |
commit | 823e9dd9c55a1f34259c5398497439f5663ff2a4 (patch) | |
tree | d8c7123a5cb672e5a017e133da23d368a5579e09 /libmachdev/net.c | |
parent | e633a759a5cc4175e5f81ebb501b32b9e14a3d7e (diff) |
fix port leak in block glue code of libmachdev.
Diffstat (limited to 'libmachdev/net.c')
-rw-r--r-- | libmachdev/net.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libmachdev/net.c b/libmachdev/net.c index 8c435b4b..b9d76731 100644 --- a/libmachdev/net.c +++ b/libmachdev/net.c @@ -273,7 +273,8 @@ void if_init_queues(ifp) static io_return_t device_open (mach_port_t reply_port, mach_msg_type_name_t reply_port_type, - dev_mode_t mode, char *name, device_t *devp) + dev_mode_t mode, char *name, device_t *devp, + mach_msg_type_name_t *devicePoly) { io_return_t err = D_SUCCESS; struct net_device *dev; @@ -357,6 +358,7 @@ device_open (mach_port_t reply_port, mach_msg_type_name_t reply_port_type, } *devp = ports_get_right (nd); + *devicePoly = MACH_MSG_TYPE_COPY_SEND; return D_SUCCESS; } |