commit | c4140744f5439f72d0448addac55b1c7c1fd58c5 | [log] [tgz] |
---|---|---|
author | Robb Glasser <rglasser@google.com> | Fri Aug 18 14:57:51 2017 +0800 |
committer | chrmhoffmann <chrmhoffmann@gmail.com> | Sat Sep 16 10:07:53 2017 +0200 |
tree | 74c41470c2945f505830fc1ae9bf4eb85ef42011 | |
parent | b76c17cdd92048f9491a24dc5cbdf99924e9b510 [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> FPIIM-1530 Change-Id: I04772faf7c21f0fd15537c9bd5aa7018939ecf69