diff options
| author | Robb Glasser <rglasser@google.com> | 2017-03-24 16:23:37 -0700 |
|---|---|---|
| committer | Sayali Lokhande <sayalil@codeaurora.org> | 2017-11-14 18:46:51 +0530 |
| commit | 36f332c5664ec2119211f7d9eb39d0b0f230b7a2 (patch) | |
| tree | ca104e1310935ad77fe6c33a42c2907be3d69e29 /lib/mpi/mpi-bit.c | |
| parent | f2170a291768f24d6220c95386ef0b2f821a5495 (diff) | |
Prevent potential double frees in sg driver
sg_ioctl could be spammed by requests, leading to a double free in
__free_pages. This protects the entry points of sg_ioctl where the
memory could be corrupted by a double call to __free_pages if multiple
requests are happening concurrently.
Bug:35644812
Change-Id: Ie13f65beb6974430f90292e2742841b26aecb8b1
Signed-off-by: Robb Glasser <rglasser@google.com>
Git-commit: 22d8e80738b5ce8784d59b48b0b051a520da4bec
Git-repo: https://android.googlesource.com/kernel/msm
[srkupp@codeaurora.org: Resolved trivial conflicts]
Signed-off-by: Srinivasa Rao Kuppala <srkupp@codeaurora.org>
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions
