Merge tag 'staging-3.12-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging

Pull staging fixes from Greg KH:
"Here are some staging driver fixes, MAINTAINER updates, and a new
device id. All of these have been in the linux-next tree, and are
pretty simple patches"

* tag 'staging-3.12-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging:
staging: r8188eu: Add new device ID
staging: imx-drm: Fix probe failure
staging: vt6656: [BUG] iwctl_siwencodeext return if device not open
staging: vt6656: [BUG] main_usb.c oops on device_close move flag earlier.
staging: vt6656: rxtx.c [BUG] s_vGetFreeContext dead lock on null apTD.
Staging: rtl8192u: r819xU_cmdpkt: checking NULL value after doing dev_alloc_skb
staging: usbip: Orphan usbip
staging: r8188eu: Add files for new drive: Cocci spatch "noderef"
staging: r8188eu: Cocci spatch "noderef"
staging: octeon-usb: Cocci spatch "noderef"
staging: r8188eu: Add files for new drive: Cocci spatch "noderef"
MAINTAINERS: staging: dgnc and dgap drivers: add maintainer
staging: lustre: Cocci spatch "noderef"

Changed files
+31 -16
drivers
staging
imx-drm
lustre
lustre
obdecho
octeon-usb
rtl8188eu
rtl8192u
vt6656
+13 -2
MAINTAINERS
··· 2640 2640 F: include/linux/dm-*.h 2641 2641 F: include/uapi/linux/dm-*.h 2642 2642 2643 + DIGI NEO AND CLASSIC PCI PRODUCTS 2644 + M: Lidza Louina <lidza.louina@gmail.com> 2645 + L: driverdev-devel@linuxdriverproject.org 2646 + S: Maintained 2647 + F: drivers/staging/dgnc/ 2648 + 2649 + DIGI EPCA PCI PRODUCTS 2650 + M: Lidza Louina <lidza.louina@gmail.com> 2651 + L: driverdev-devel@linuxdriverproject.org 2652 + S: Maintained 2653 + F: drivers/staging/dgap/ 2654 + 2643 2655 DIOLAN U2C-12 I2C DRIVER 2644 2656 M: Guenter Roeck <linux@roeck-us.net> 2645 2657 L: linux-i2c@vger.kernel.org ··· 8737 8725 F: drivers/hid/usbhid/ 8738 8726 8739 8727 USB/IP DRIVERS 8740 - M: Matt Mooney <mfm@muteddisk.com> 8741 8728 L: linux-usb@vger.kernel.org 8742 - S: Maintained 8729 + S: Orphan 8743 8730 F: drivers/staging/usbip/ 8744 8731 8745 8732 USB ISP116X DRIVER
+3 -8
drivers/staging/imx-drm/imx-drm-core.c
··· 41 41 struct list_head encoder_list; 42 42 struct list_head connector_list; 43 43 struct mutex mutex; 44 - int references; 45 44 int pipes; 46 45 struct drm_fbdev_cma *fbhelper; 47 46 }; ··· 240 241 } 241 242 } 242 243 243 - imxdrm->references++; 244 - 245 244 return imxdrm->drm; 246 245 247 246 unwind_crtc: ··· 276 279 277 280 list_for_each_entry(enc, &imxdrm->encoder_list, list) 278 281 module_put(enc->owner); 279 - 280 - imxdrm->references--; 281 282 282 283 mutex_unlock(&imxdrm->mutex); 283 284 } ··· 480 485 481 486 mutex_lock(&imxdrm->mutex); 482 487 483 - if (imxdrm->references) { 488 + if (imxdrm->drm->open_count) { 484 489 ret = -EBUSY; 485 490 goto err_busy; 486 491 } ··· 559 564 560 565 mutex_lock(&imxdrm->mutex); 561 566 562 - if (imxdrm->references) { 567 + if (imxdrm->drm->open_count) { 563 568 ret = -EBUSY; 564 569 goto err_busy; 565 570 } ··· 704 709 705 710 mutex_lock(&imxdrm->mutex); 706 711 707 - if (imxdrm->references) { 712 + if (imxdrm->drm->open_count) { 708 713 ret = -EBUSY; 709 714 goto err_busy; 710 715 }
+1 -1
drivers/staging/lustre/lustre/obdecho/echo_client.c
··· 1387 1387 if (nob > ulsm_nob) 1388 1388 return (-EINVAL); 1389 1389 1390 - if (copy_to_user (ulsm, lsm, sizeof(ulsm))) 1390 + if (copy_to_user (ulsm, lsm, sizeof(*ulsm))) 1391 1391 return (-EFAULT); 1392 1392 1393 1393 for (i = 0; i < lsm->lsm_stripe_count; i++) {
+1 -1
drivers/staging/octeon-usb/cvmx-usb.c
··· 604 604 } 605 605 } 606 606 607 - memset(usb, 0, sizeof(usb)); 607 + memset(usb, 0, sizeof(*usb)); 608 608 usb->init_flags = flags; 609 609 610 610 /* Initialize the USB state structure */
+1 -1
drivers/staging/rtl8188eu/core/rtw_mp.c
··· 907 907 sscanf(data, "pts =%d, start =%d, stop =%d", &psd_pts, &psd_start, &psd_stop); 908 908 } 909 909 910 - _rtw_memset(data, '\0', sizeof(data)); 910 + _rtw_memset(data, '\0', sizeof(*data)); 911 911 912 912 i = psd_start; 913 913 while (i < psd_stop) {
+1 -1
drivers/staging/rtl8188eu/hal/rtl8188e_dm.c
··· 57 57 u8 cut_ver, fab_ver; 58 58 59 59 /* Init Value */ 60 - _rtw_memset(dm_odm, 0, sizeof(dm_odm)); 60 + _rtw_memset(dm_odm, 0, sizeof(*dm_odm)); 61 61 62 62 dm_odm->Adapter = Adapter; 63 63
+1 -1
drivers/staging/rtl8188eu/os_dep/ioctl_linux.c
··· 6973 6973 stop = strncmp(extra, "stop", 4); 6974 6974 sscanf(extra, "count =%d, pkt", &count); 6975 6975 6976 - _rtw_memset(extra, '\0', sizeof(extra)); 6976 + _rtw_memset(extra, '\0', sizeof(*extra)); 6977 6977 6978 6978 if (stop == 0) { 6979 6979 bStartTest = 0; /* To set Stop */
+1
drivers/staging/rtl8188eu/os_dep/usb_intf.c
··· 54 54 /*=== Customer ID ===*/ 55 55 /****** 8188EUS ********/ 56 56 {USB_DEVICE(0x8179, 0x07B8)}, /* Abocom - Abocom */ 57 + {USB_DEVICE(0x2001, 0x330F)}, /* DLink DWA-125 REV D1 */ 57 58 {} /* Terminating entry */ 58 59 }; 59 60
+2
drivers/staging/rtl8192u/r819xU_cmdpkt.c
··· 37 37 /* Get TCB and local buffer from common pool. 38 38 (It is shared by CmdQ, MgntQ, and USB coalesce DataQ) */ 39 39 skb = dev_alloc_skb(USB_HWDESC_HEADER_LEN + DataLen + 4); 40 + if (!skb) 41 + return RT_STATUS_FAILURE; 40 42 memcpy((unsigned char *)(skb->cb), &dev, sizeof(dev)); 41 43 tcb_desc = (cb_desc *)(skb->cb + MAX_DEV_ADDR_SIZE); 42 44 tcb_desc->queue_index = TXCMD_QUEUE;
+3
drivers/staging/vt6656/iwctl.c
··· 1634 1634 if (pMgmt == NULL) 1635 1635 return -EFAULT; 1636 1636 1637 + if (!(pDevice->flags & DEVICE_FLAGS_OPENED)) 1638 + return -ENODEV; 1639 + 1637 1640 buf = kzalloc(sizeof(struct viawget_wpa_param), GFP_KERNEL); 1638 1641 if (buf == NULL) 1639 1642 return -ENOMEM;
+2 -1
drivers/staging/vt6656/main_usb.c
··· 1098 1098 memset(pMgmt->abyCurrBSSID, 0, 6); 1099 1099 pMgmt->eCurrState = WMAC_STATE_IDLE; 1100 1100 1101 + pDevice->flags &= ~DEVICE_FLAGS_OPENED; 1102 + 1101 1103 device_free_tx_bufs(pDevice); 1102 1104 device_free_rx_bufs(pDevice); 1103 1105 device_free_int_bufs(pDevice); ··· 1111 1109 usb_free_urb(pDevice->pInterruptURB); 1112 1110 1113 1111 BSSvClearNodeDBTable(pDevice, 0); 1114 - pDevice->flags &=(~DEVICE_FLAGS_OPENED); 1115 1112 1116 1113 DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "device_close2 \n"); 1117 1114
+2
drivers/staging/vt6656/rxtx.c
··· 148 148 DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"GetFreeContext()\n"); 149 149 150 150 for (ii = 0; ii < pDevice->cbTD; ii++) { 151 + if (!pDevice->apTD[ii]) 152 + return NULL; 151 153 pContext = pDevice->apTD[ii]; 152 154 if (pContext->bBoolInUse == false) { 153 155 pContext->bBoolInUse = true;