ses: close potential registration race
authorDan Williams <dan.j.williams@intel.com>
Tue, 30 Dec 2014 22:46:14 +0000 (14:46 -0800)
committerChristoph Hellwig <hch@lst.de>
Fri, 9 Jan 2015 14:44:17 +0000 (15:44 +0100)
commited09dcc8bd7fe0991af7737e675996cbd022f38f
tree1d789e23989575d366b2bf657c7b7fbf89772733
parentacd6d73826224c20c44f505f56b0503f022d695c
ses: close potential registration race

The slot and address fields have a small window of instability when
userspace can read them before initialization. Separate
enclosure_component
allocation from registration.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Song Liu <songliubraving@fb.com>
Reviewed-by: Jens Axboe <axboe@fb.com>
Cc: Hannes Reinecke <hare@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/misc/enclosure.c
drivers/scsi/ses.c
include/linux/enclosure.h
This page took 0.025051 seconds and 5 git commands to generate.