[input:next 2064/2066] drivers/input/touchscreen/usbtouchscreen.c:1476:1-11: second lock on line 1479 (fwd)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Double lock on lines 1476 and 1479

julia

---------- Forwarded message ----------
Date: Sun, 18 Mar 2018 09:44:59 +0800
From: kbuild test robot <fengguang.wu@xxxxxxxxx>
To: kbuild@xxxxxx
Cc: Julia Lawall <julia.lawall@xxxxxxx>
Subject: [input:next 2064/2066]
    drivers/input/touchscreen/usbtouchscreen.c:1476:1-11: second lock on line
    1479

CC: kbuild-all@xxxxxx
CC: linux-input@xxxxxxxxxxxxxxx
TO: Marcus Folkesson <marcus.folkesson@xxxxxxxxx>
CC: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git next
head:   68106869e8026f95795f677c544639109b5bcf2f
commit: 5648f00809c3b549340d022f7942f97a94197e0d [2064/2066] Input: usbtouchscreen - fix deadlock in autosuspend
:::::: branch date: 8 hours ago
:::::: commit date: 8 hours ago

>> drivers/input/touchscreen/usbtouchscreen.c:1476:1-11: second lock on line 1479

# https://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git/commit/?id=5648f00809c3b549340d022f7942f97a94197e0d
git remote add input https://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git
git remote update input
git checkout 5648f00809c3b549340d022f7942f97a94197e0d
vim +1476 drivers/input/touchscreen/usbtouchscreen.c

1d3e2023 drivers/usb/input/usbtouchscreen.c         Daniel Ritz        2006-03-29  1470
1d3e2023 drivers/usb/input/usbtouchscreen.c         Daniel Ritz        2006-03-29  1471  static void usbtouch_close(struct input_dev *input)
1d3e2023 drivers/usb/input/usbtouchscreen.c         Daniel Ritz        2006-03-29  1472  {
7791bdae drivers/usb/input/usbtouchscreen.c         Dmitry Torokhov    2007-04-12  1473  	struct usbtouch_usb *usbtouch = input_get_drvdata(input);
5d9efc59 drivers/input/touchscreen/usbtouchscreen.c Oliver Neukum      2010-07-15  1474  	int r;
1d3e2023 drivers/usb/input/usbtouchscreen.c         Daniel Ritz        2006-03-29  1475
5648f008 drivers/input/touchscreen/usbtouchscreen.c Marcus Folkesson   2018-03-17 @1476  	mutex_lock(&usbtouch->pm_mutex);
2330ed18 drivers/input/touchscreen/usbtouchscreen.c Daniel Silverstone 2009-11-23  1477  	if (!usbtouch->type->irq_always)
1d3e2023 drivers/usb/input/usbtouchscreen.c         Daniel Ritz        2006-03-29  1478  		usb_kill_urb(usbtouch->irq);
5648f008 drivers/input/touchscreen/usbtouchscreen.c Marcus Folkesson   2018-03-17 @1479  	mutex_lock(&usbtouch->pm_mutex);
5648f008 drivers/input/touchscreen/usbtouchscreen.c Marcus Folkesson   2018-03-17  1480
5d9efc59 drivers/input/touchscreen/usbtouchscreen.c Oliver Neukum      2010-07-15  1481  	r = usb_autopm_get_interface(usbtouch->interface);
5d9efc59 drivers/input/touchscreen/usbtouchscreen.c Oliver Neukum      2010-07-15  1482  	usbtouch->interface->needs_remote_wakeup = 0;
5d9efc59 drivers/input/touchscreen/usbtouchscreen.c Oliver Neukum      2010-07-15  1483  	if (!r)
5d9efc59 drivers/input/touchscreen/usbtouchscreen.c Oliver Neukum      2010-07-15  1484  		usb_autopm_put_interface(usbtouch->interface);
1d3e2023 drivers/usb/input/usbtouchscreen.c         Daniel Ritz        2006-03-29  1485  }
1d3e2023 drivers/usb/input/usbtouchscreen.c         Daniel Ritz        2006-03-29  1486

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux