View | Details | Raw Unified | Return to bug 62195
Collapse All | Expand All

(-)a/drivers/input/serio/serport.c (+3 lines)
Lines 64-69 Link Here
64
	struct serio *serio;
64
	struct serio *serio;
65
	char name[64];
65
	char name[64];
66
66
67
	if (!capable(CAP_SYS_ADMIN))
68
		return -EPERM;
69
67
	serport = kmalloc(sizeof(struct serport), GFP_KERNEL);
70
	serport = kmalloc(sizeof(struct serport), GFP_KERNEL);
68
	serio = kmalloc(sizeof(struct serio), GFP_KERNEL);
71
	serio = kmalloc(sizeof(struct serio), GFP_KERNEL);
69
	if (unlikely(!serport || !serio)) {
72
	if (unlikely(!serport || !serio)) {

Return to bug 62195