dmaengine: protect 'id' from concurrent registrations
authorDan Williams <dan.j.williams@intel.com>
Thu, 4 Dec 2008 00:17:07 +0000 (17:17 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 14 Jan 2009 17:44:03 +0000 (09:44 -0800)
commitad4efe4fc5363e79bf6db87b012b73189806f4c7
tree5c7e492fca9881c1aa8f3da0cb3386a93cb04ace
parentcf7af4a82fe408a8c9628480ac3dc272e087ce75
dmaengine: protect 'id' from concurrent registrations

commit b0b42b16ff2b90f17bc1a4308366c9beba4b276e upstream.

There is a possibility to have two devices registered with the same id.

Acked-by: Maciej Sosnowski <maciej.sosnowski@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/dma/dmaengine.c