tree: git://git.kernel.org/pub/scm/linux/kernel/git/mnyman/xhci.git test_ep_reset_halt head: fb58633ed195254fba6794db78946ac54232eefd commit: 73651f7b5ce760f0085ad5e262e62633a2d039b5 [1/2] xhci: Fix endpoint halt and reset handling. WORK IN PROGRESS
>> drivers/usb/host/xhci.c:3111:11-20: ERROR: ctrl_ctx is NULL but dereferenced. git remote add xhci git://git.kernel.org/pub/scm/linux/kernel/git/mnyman/xhci.git git remote update xhci git checkout 73651f7b5ce760f0085ad5e262e62633a2d039b5 vim +3111 drivers/usb/host/xhci.c 73651f7b drivers/usb/host/xhci.c Mathias Nyman 2014-04-15 3095 * it will do the same? 73651f7b drivers/usb/host/xhci.c Mathias Nyman 2014-04-15 3096 * No, add check in xhci_configure_endpoint instead if that ep happends 73651f7b drivers/usb/host/xhci.c Mathias Nyman 2014-04-15 3097 * to be in the middle of CONFIG_EP_PENDING, fail that configure endpoint 73651f7b drivers/usb/host/xhci.c Mathias Nyman 2014-04-15 3098 * (or move it forward??) */ 73651f7b drivers/usb/host/xhci.c Mathias Nyman 2014-04-15 3099 73651f7b drivers/usb/host/xhci.c Mathias Nyman 2014-04-15 3100 xhci_err(xhci, "MATTU submit config endpiont cmd\n"); 73651f7b drivers/usb/host/xhci.c Mathias Nyman 2014-04-15 3101 xhci_queue_configure_endpoint(xhci, command_conf, virt_dev->in_ctx->dma, 73651f7b drivers/usb/host/xhci.c Mathias Nyman 2014-04-15 3102 udev->slot_id, false); 73651f7b drivers/usb/host/xhci.c Mathias Nyman 2014-04-15 3103 xhci_ring_cmd_db(xhci); a1587d97 drivers/usb/host/xhci-hcd.c Sarah Sharp 2009-07-27 3104 spin_unlock_irqrestore(&xhci->lock, flags); 73651f7b drivers/usb/host/xhci.c Mathias Nyman 2014-04-15 3105 xhci_err(xhci, "MATTU wait for config ep\n"); 73651f7b drivers/usb/host/xhci.c Mathias Nyman 2014-04-15 3106 wait_for_completion(command_conf->completion); 73651f7b drivers/usb/host/xhci.c Mathias Nyman 2014-04-15 3107 xhci_err(xhci, "MATTU config ep done\n"); a1587d97 drivers/usb/host/xhci-hcd.c Sarah Sharp 2009-07-27 3108 73651f7b drivers/usb/host/xhci.c Mathias Nyman 2014-04-15 3109 cleanup: 73651f7b drivers/usb/host/xhci.c Mathias Nyman 2014-04-15 3110 /* LOCK for ep_state? and control context? */ 73651f7b drivers/usb/host/xhci.c Mathias Nyman 2014-04-15 @3111 ctrl_ctx->add_flags = 0; 73651f7b drivers/usb/host/xhci.c Mathias Nyman 2014-04-15 3112 ctrl_ctx->drop_flags = 0; 73651f7b drivers/usb/host/xhci.c Mathias Nyman 2014-04-15 3113 virt_ep->ep_state &= ~EP_CONFIG_PENDING; 73651f7b drivers/usb/host/xhci.c Mathias Nyman 2014-04-15 3114 kfree(command->completion); 73651f7b drivers/usb/host/xhci.c Mathias Nyman 2014-04-15 3115 kfree(command); 73651f7b drivers/usb/host/xhci.c Mathias Nyman 2014-04-15 3116 kfree(command_conf->completion); 73651f7b drivers/usb/host/xhci.c Mathias Nyman 2014-04-15 3117 kfree(command_conf); a1587d97 drivers/usb/host/xhci-hcd.c Sarah Sharp 2009-07-27 3118 } a1587d97 drivers/usb/host/xhci-hcd.c Sarah Sharp 2009-07-27 3119 --- 0-DAY kernel build testing backend Open Source Technology Center http://lists.01.org/mailman/listinfo/kbuild Intel Corporation _______________________________________________ kbuild mailing list kbuild@lists.01.org https://lists.01.org/mailman/listinfo/kbuild _______________________________________________ kbuild mailing list kbuild@lists.01.org https://lists.01.org/mailman/listinfo/kbuild