Staging: sxg: Fix memory leak caused by double allocation of rings
authorMithlesh Thukral <mithlesh@linsyssoft.com>
Tue, 24 Feb 2009 12:39:34 +0000 (18:09 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 3 Apr 2009 21:53:13 +0000 (14:53 -0700)
commit9fd6966c62e6ad770a8b193d71d36beb9b82d351
tree7bada51d9d6357cfa3f916726ec200cc4d7cd56e
parentbbb18b97f6bcf1d55814ce08bdaf6c358b16c8bb
Staging: sxg: Fix memory leak caused by double allocation of rings

* The receive rings were getting allocated twice. Once at probe time
  and once at open time. This leaked huge amounts of memory.
  Fix this leak and now allocation is done only once.

Signed-off-by: LinSysSoft Sahara Team <saharaproj@linsyssoft.com>
Signed-off-by: Mithlesh Thukral <mithlesh@linsyssoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/sxg/sxg.c