Connector: Correctly set the error code in case of success when dispatching receive...
commit663dd6dcaf7e95526e469e91f41972a9c0cca30c
authorK. Y. Srinivasan <kys@microsoft.com>
Tue, 17 May 2011 22:25:38 +0000 (17 15:25 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 7 Jun 2011 19:02:00 +0000 (7 12:02 -0700)
tree819a0fb54725a53e59c4a855f92a4425946f0fcd
parentea2c00095c022846dd8dfd211de05154d3e4e1b8
Connector: Correctly set the error code in case of success when dispatching receive callbacks

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>
Cc: stable <stable@kernel.org> [.39]
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/connector/connector.c