dnet: fix wrong use of platform_set_drvdata()
authorIlya Yanok <yanok@emcraft.com>
Mon, 21 Feb 2011 10:20:30 +0000 (10:20 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Feb 2011 20:22:21 +0000 (12:22 -0800)
commitb093dd96844186cd03318aaf0cd96f91db3970ef
treea1cdddbb0ef6e3860bd9d9b44e13736d3776931a
parent915239472a5015c7667025551a73e11d6e2abee0
dnet: fix wrong use of platform_set_drvdata()

platform_set_drvdata() was used with argument of incorrect type and
could cause memory corruption. Moreover, because of not setting drvdata
in the correct place not all resources were freed upon module unload.

Signed-off-by: Ilya Yanok <yanok@emcraft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dnet.c