rcu: Replace rcu_assign_pointer(x, NULL) with RCU_INIT_POINTER(x, NULL) in drivers/input/endev.c
Subsystems (3)
PATCH 1/1 rcu: Replace rcu_assign_pointer(x, NULL) with RCU_INIT_POINTER(x, NULL) in drivers/input/endev.c
This patch replaces rcu_assign_pointer(x, NULL) with RCU_INIT_POINTER(x, NULL) in drivers/input/endev.c
Signed-off-by Monam Agarwal <[email protected]>
--- drivers/input/evdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/input/evdev.c +1 -1
@@ -174,7 +174,7 @@ static int evdev_ungrab(struct evdev *evdev, struct evdev_client *client)if (evdev->grab != client)return -EINVAL ; -rcu_assign_pointer (evdev->grab,NULL ); +RCU_INIT_POINTER (evdev->grab,NULL );synchronize_rcu ();input_release_device (&evdev->handle);
Signature · 1 line
1.7.9.5
Quoted 3 lines · Monam Agarwal
This patch replaces
rcu_assign_pointer(x, NULL)withRCU_INIT_POINTER(x, NULL)indrivers/input/endev.cSigned-off-by Monam Agarwal <[email protected]>
Reviewed-by Paul E. McKenney <[email protected]>
Quoted 20 lines
--- drivers/input/evdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/input/evdev.c +1
-1@@ -174,7 +174,7 @@ static int evdev_ungrab(struct evdev *evdev, struct evdev_client *client)if (evdev->grab != client)return -EINVAL ; -rcu_assign_pointer (evdev->grab,NULL ); +RCU_INIT_POINTER (evdev->grab,NULL );synchronize_rcu ();input_release_device (&evdev->handle);Signature · 1 line
1.7.9.5