Re: Use of copy_to_user in fireworks_hwdep.c while holding a spin_lock

2016-08-19 Thread Takashi Sakamoto
Hi, On Aug 19 2016 15:24, Vaishali Thakkar wrote: > I was wondering about the call to copy_to_user in function hwdep_read_locked > and > hwdep_read_resp_buf for driver sound/firewire/fireworks/fireworks_hwdep.c. > The function hwdep_read calls both of these functions while holding a > spinlock[

Use of copy_to_user in fireworks_hwdep.c while holding a spin_lock

2016-08-18 Thread Vaishali Thakkar
Hello, I was wondering about the call to copy_to_user in function hwdep_read_locked and hwdep_read_resp_buf for driver sound/firewire/fireworks/fireworks_hwdep.c. The function hwdep_read calls both of these functions while holding a spinlock[1], which is not normally allowed due to the possibil

Use of copy_to_user in fireworks_hwdep.c while holding a spin_lock

2016-08-18 Thread Vaishali Thakkar
Hello, I was wondering about the call to copy_to_user in function hwdep_read_locked and hwdep_read_resp_buf for driver sound/firewire/fireworks/fireworks_hwdep.c. The function hwdep_read calls both of these functions while holding a spinlock[1], which is not normally allowed due to the possibili