[PATCH] staging: android: ashmem: Fix a race condition in pin ioctls

2018-02-03 Thread Ben Hutchings
ashmem_pin_unpin() reads asma->file and asma->size before taking the ashmem_mutex, so it can race with other operations that modify them. Build-tested only. Cc: sta...@vger.kernel.org Signed-off-by: Ben Hutchings --- drivers/staging/android/ashmem.c | 19 +++ 1 file changed, 11

[PATCH v4] Staging: iio: ade7758: Expand buf_lock to cover both buffer and state protection

2018-02-03 Thread Shreeya Patel
iio_dev->mlock is to be used only by the IIO core for protecting device mode changes between INDIO_DIRECT and INDIO_BUFFER. This patch replaces the use of mlock with the already established buf_lock mutex. Introducing 'unlocked' forms of read and write registers. The read/write frequency function

Re: [PATCH] staging: vc04_services: remove unused files

2018-02-03 Thread Stefan Wahren
> Corentin Labbe hat am 1. Februar 2018 um 21:39 > geschrieben: > > > All thoses files are not used by anybody. > Lets just remove them. > > Signed-off-by: Corentin Labbe > --- > .../interface/vchiq_arm/vchiq_build_info.h | 37 -- > .../interface/vchiq_arm/vchiq_memdrv.h

Re: [PATCH] staging: vc04_services: merge vchiq_kern_lib.c into vchiq_arm.c

2018-02-03 Thread Stefan Wahren
[add Phil] > Arnd Bergmann hat am 2. Februar 2018 um 16:01 geschrieben: > > > There are two incompatible definitions of 'vchiq_instance_struct', so > passing them through vchiq_initialise(), vchiq_connect() or another > such interface is broken, as shown by building the driver with link-time >