staging/mei: fix failure for multiple mei clients connection
authorNatalia Ovsyanikov <natalia.ovsyanikov@intel.com>
Sun, 4 Dec 2011 22:16:54 +0000 (00:16 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 8 Dec 2011 23:00:44 +0000 (15:00 -0800)
commite8cd29d8e26b9f7526297cdfb031ce757502a3b4
tree89b33cf6ed3b4e13cf992df318a6e55b4911a889
parent3a5352fc9d316fe1be18daf80571e80805e06f11
staging/mei: fix failure for multiple mei clients connection

The irq handler processes queued mei clients connect requests, which were
not transferred to the device in ioctl context due to unavailability
of the write buffer.

The handler may transfer the connection request only if there is
no other ongoing  requests for the same mei id.
This condition was implemented inversely which depending on
the write buffer availability lead to seemingly random
failures during connection attempts.

Cc: Oren Weil <oren.jer.weil@intel.com>
Signed-off-by: Natalia Ovsyanikov <natalia.ovsyanikov@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/mei/interrupt.c