Print this page
9576 hid_attach is missing one mutex_exit in error path
Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Yuri Pankov <yuripv@yuripv.net>
Approved by: Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
        
*** 432,441 ****
--- 432,442 ----
          }
  
          mutex_enter(&hidp->hid_mutex);
          if (usb_ep_xdescr_fill(USB_EP_XDESCR_CURRENT_VERSION, dip, ep_data,
              &hidp->hid_ep_intr_xdescr) != USB_SUCCESS) {
+                 mutex_exit(&hidp->hid_mutex);
  
                  goto fail;
          }
  
          /*