summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2017-04-07 10:34:14 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2017-04-12 03:55:20 +0300
commit1bc0eb0446158cc76562176b80623aa119afee5b (patch)
treef72fe80c00543cbce217db3bc95555fa34b2a09d /security
parent136e57bf43dc4babbfb8783abbf707d483cacbe3 (diff)
downloadlinux-1bc0eb0446158cc76562176b80623aa119afee5b.tar.xz
scsi: sg: protect accesses to 'reserved' page array
The 'reserved' page array is used as a short-cut for mapping data, saving us to allocate pages per request. However, the 'reserved' array is only capable of holding one request, so this patch introduces a mutex for protect 'sg_fd' against concurrent accesses. Signed-off-by: Hannes Reinecke <hare@suse.com> Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Tested-by: Johannes Thumshirn <jthumshirn@suse.de> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions