Loading drivers/media/platform/msm/camera_v2/msm.c +2 −4 Original line number Diff line number Diff line /* Copyright (c) 2012-2016, The Linux Foundation. All rights reserved. /* Copyright (c) 2012-2017, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -997,11 +997,9 @@ static int msm_open(struct file *filep) BUG_ON(!pvdev); /* !!! only ONE open is allowed !!! */ if (atomic_read(&pvdev->opened)) if (atomic_cmpxchg(&pvdev->opened, 0, 1)) return -EBUSY; atomic_set(&pvdev->opened, 1); spin_lock_irqsave(&msm_pid_lock, flags); msm_pid = get_pid(task_pid(current)); spin_unlock_irqrestore(&msm_pid_lock, flags); Loading Loading
drivers/media/platform/msm/camera_v2/msm.c +2 −4 Original line number Diff line number Diff line /* Copyright (c) 2012-2016, The Linux Foundation. All rights reserved. /* Copyright (c) 2012-2017, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -997,11 +997,9 @@ static int msm_open(struct file *filep) BUG_ON(!pvdev); /* !!! only ONE open is allowed !!! */ if (atomic_read(&pvdev->opened)) if (atomic_cmpxchg(&pvdev->opened, 0, 1)) return -EBUSY; atomic_set(&pvdev->opened, 1); spin_lock_irqsave(&msm_pid_lock, flags); msm_pid = get_pid(task_pid(current)); spin_unlock_irqrestore(&msm_pid_lock, flags); Loading