/* * Intel Wireless UWB Link 1480 * Event Size tables for Wired Adaptors * * Copyright (C) 2005-2006 Intel Corporation * Inaky Perez-Gonzalez * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License version * 2 as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA * 02110-1301, USA. * * * FIXME: docs */ #include #include #include #include #include "dfu/i1480-dfu.h" /** Event size table for wEvents 0x00XX */ static struct uwb_est_entry i1480_est_fd00[] = { /* Anybody expecting this response has to use * neh->extra_size to specify the real size that will * come back. */ [i1480_EVT_CONFIRM] = { .size = sizeof(struct i1480_evt_confirm) }, [i1480_CMD_SET_IP_MAS] = { .size = sizeof(struct i1480_evt_confirm) }, #ifdef i1480_RCEB_EXTENDED [0x09] = { .size = sizeof(struct i1480_rceb), .offset = 1 + offsetof(struct i1480_rceb, wParamLength), }, #endif }; /** Event size table for wEvents 0x01XX */ static struct uwb_est_entry i1480_est_fd01[] = { [0xff & i1480_EVT_RM_INIT_DONE] = { .size = sizeof(struct i1480_rceb) }, [0xff & i1480_EVT_DEV_ADD] = { .size = sizeof(struct i1480_rceb) + 9 }, [0xff & i1480_EVT_DEV_RM] = { .size = sizeof(struct i1480_rceb) + 9 }, [0xff & i1480_EVT_DEV_ID_CHANGE] = { .size = sizeof(struct i1480_rceb) + 2 }, }; static int __init i1480_est_init(void) { int result = uwb_est_register(i1480_CET_VS1, 0x00, 0x8086, 0x0c3b, i1480_est_fd00, ARRAY_SIZE(i1480_est_fd00)); if (result < 0) { printk(KERN_ERR "Can't register EST table fd00: %d\n", result); return result; } result = uwb_est_register(i1480_CET_VS1, 0x01, 0x8086, 0x0c3b, i1480_est_fd01, ARRAY_SIZE(i1480_est_fd01)); if (result < 0) { printk(KERN_ERR "Can't register EST table fd01: %d\n", result); return result; } return 0; } module_init(i1480_est_init); static void __exit i1480_est_exit(void) { uwb_est_unregister(i1480_CET_VS1, 0x00, 0x8086, 0x0c3b, i1480_est_fd00, ARRAY_SIZE(i1480_est_fd00)); uwb_est_unregister(i1480_CET_VS1, 0x01, 0x8086, 0x0c3b, i1480_est_fd01, ARRAY_SIZE(i1480_est_fd01)); } module_exit(i1480_est_exit); MODULE_AUTHOR("Inaky Perez-Gonzalez "); MODULE_DESCRIPTION("i1480's Vendor Specific Event Size Tables"); MODULE_LICENSE("GPL"); /** * USB device ID's that we handle * * [so we are loaded when this kind device is connected] */ static struct usb_device_id __used i1480_est_id_table[] = { { USB_DEVICE(0x8086, 0xdf3b), }, { USB_DEVICE(0x8086, 0x0c3b), }, { }, }; MODULE_DEVICE_TABLE(usb, i1480_est_id_table); 85d6'>include/crypto/b128ops.h
diff options
context:
space:
mode:
authorAndrei Vagin <avagin@openvz.org>2017-01-04 19:28:14 -0800
committerEric W. Biederman <ebiederm@xmission.com>2017-01-10 13:34:56 +1300
commitadd7c65ca426b7a37184dd3d2172394e23d585d6 (patch)
tree28b08b519540041b06ed0ab0b1c005076b932e8e /include/crypto/b128ops.h
parent75422726b0f717d67db3283c2eb5bc14fa2619c5 (diff)
pid: fix lockdep deadlock warning due to ucount_lock
========================================================= [ INFO: possible irq lock inversion dependency detected ] 4.10.0-rc2-00024-g4aecec9-dirty #118 Tainted: G W --------------------------------------------------------- swapper/1/0 just changed the state of lock: (&(&sighand->siglock)->rlock){-.....}, at: [<ffffffffbd0a1bc6>] __lock_task_sighand+0xb6/0x2c0 but this lock took another, HARDIRQ-unsafe lock in the past: (ucounts_lock){+.+...} and interrupts could create inverse lock ordering between them. other info that might help us debug this: Chain exists of: &(&sighand->siglock)->rlock --> &(&tty->ctrl_lock)->rlock --> ucounts_lock Possible interrupt unsafe locking scenario: CPU0 CPU1 ---- ---- lock(ucounts_lock); local_irq_disable(); lock(&(&sighand->siglock)->rlock); lock(&(&tty->ctrl_lock)->rlock); <Interrupt> lock(&(&sighand->siglock)->rlock); *** DEADLOCK *** This patch removes a dependency between rlock and ucount_lock. Fixes: f333c700c610 ("pidns: Add a limit on the number of pid namespaces") Cc: stable@vger.kernel.org Signed-off-by: Andrei Vagin <avagin@openvz.org> Acked-by: Al Viro <viro@ZenIV.linux.org.uk> Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'include/crypto/b128ops.h')