kref_put(&port->umad_dev->ref, ib_umad_release_dev);
static int ib_umad_sm_close(struct inode *inode, struct file *filp){	struct ib_umad_port *port = filp->private_data;	struct ib_port_modify props = {		.clr_port_cap_mask = IB_PORT_SM	};	int ret;	ret = ib_modify_port(port->ib_dev, port->port_num, 0, &props);	up(&port->sm_sem);	return ret;}