Staging: heci: fix wrong order of device_lock and file_lock
authorDongxiao Xu <dongxiao.xu@intel.com>
Sun, 31 May 2009 06:43:39 +0000 (14:43 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 19 Jun 2009 18:00:55 +0000 (11:00 -0700)
commit171df6381962b463e5aa8ff936eb3f995a56ce9e
tree55a7c6d792f4a8d450c72b0e6e7b3adf223ad285
parent36e844671cbdace27f0462a46cedde0a4d6b1001
Staging: heci: fix wrong order of device_lock and file_lock

When the two locks are nested, the code should always first acquire file_lock,
and then acquire device_lock in order not to generate dead-lock race.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/heci/io_heci.c