Skip to content

Commit 2be8527

Browse files
arndbpaulmck
authored andcommitted
input: __rcu annotations
Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com> Acked-by: Dmitry Torokhov <dtor@mail.ru> Reviewed-by: Josh Triplett <josh@joshtriplett.org>
1 parent 5b22216 commit 2be8527

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/input/evdev.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ struct evdev {
2828
int minor;
2929
struct input_handle handle;
3030
wait_queue_head_t wait;
31-
struct evdev_client *grab;
31+
struct evdev_client __rcu *grab;
3232
struct list_head client_list;
3333
spinlock_t client_lock; /* protects client_list */
3434
struct mutex mutex;

‎include/linux/input.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1196,7 +1196,7 @@ struct input_dev {
11961196
int (*flush)(struct input_dev *dev, struct file *file);
11971197
int (*event)(struct input_dev *dev, unsigned int type, unsigned int code, int value);
11981198

1199-
struct input_handle *grab;
1199+
struct input_handle __rcu *grab;
12001200

12011201
spinlock_t event_lock;
12021202
struct mutex mutex;

0 commit comments

Comments
 (0)