Staging: heci: fix the problem that file_ext->state should be protected by device_lock
authorDongxiao Xu <dongxiao.xu@intel.com>
Sun, 31 May 2009 06:44:01 +0000 (14:44 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 19 Jun 2009 18:00:55 +0000 (11:00 -0700)
commitafcf462a1fd78cc372aefd9fe352e2dc2f237937
treeec346ebfcf6ad5e44be0cf9aedafc6cb2b86eb89
parent8d1c50e9829442be5bc88979d587af2a5ff07e32
Staging: heci: fix the problem that file_ext->state should be protected by device_lock

While access file_ext->state, we should use device_lock to protect it. The
original codes miss this in some places.

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