]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Connector: Correctly set the error code in case of success when dispatching receive...
authorK. Y. Srinivasan <kys@microsoft.com>
Tue, 17 May 2011 22:25:38 +0000 (15:25 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 9 Jul 2011 06:15:07 +0000 (23:15 -0700)
commit08f7de138ca1a943a7a4bdfc5cba9a47560078a6
treeeaa3417606075f9f0ef7ce182def687962342602
parent9522ed1f8edb8f754f5f5349292bed355a2b6400
Connector: Correctly set the error code in case of success when dispatching receive callbacks

commit 663dd6dcaf7e95526e469e91f41972a9c0cca30c upstream.

The recent changes to the connector code introduced this bug where even
when a callback was invoked, we would return an error resulting in
double freeing of the skb. This patch fixes this bug.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/connector/connector.c