switch: avoid memory access after free
authorKrishna Reddy <vdumpa@nvidia.com>
Fri, 30 Aug 2013 15:38:41 +0000 (08:38 -0700)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 20:44:49 +0000 (13:44 -0700)
commit9b49f6b8ab6d03fbce11bb28d01dc4e2a158a0a7
tree15c9b966014e0f2aafd98708ec6b8ab649147b96
parentfeb4b2092dcae12aea775d1a716c8d43cdb2f47b
switch: avoid memory access after free

driver data has to be set before destory of device to
avoid accessing memory after free.

Change-Id: Id06a9239a26958917363c45721dc0bee1aba1ced
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/268587
Reviewed-by: Alex Waterman <alexw@nvidia.com>
GVS: Gerrit_Virtual_Submit
drivers/switch/switch_class.c