]> git.neil.brown.name Git - history.git/commit
[PATCH] prism54 Fix memory leaks
authorMargit Schubert-While <margitsw@t-online.de>
Tue, 10 Aug 2004 12:51:37 +0000 (08:51 -0400)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 10 Aug 2004 12:51:37 +0000 (08:51 -0400)
commitd716e082ef6078100f96807434a8269b707149ca
tree017e2005e962323ab7527b274bf68e980d1fedf3
parent0391355e3cb86e31306c5a18da9ef7169cbad5a9
[PATCH] prism54 Fix memory leaks

* Change the "version" OID to what it should be.
* Fix memory leaks - mgt_get_request always returns
* allocated memory for non-int OIDS (with an exception -
* keep reading). If the caller checks the return and itself
* returns, then it must free memory.
* However, it is possible to return from mgt_get_request
* early (!priv->mib). In this case, weird things can happen
* in isl_ioctl. Quick fix, at least to force an oops, is
* to set the union value to NULL. The real fix is to
* recode all mgt_get_request calls in isl_ioctl.
drivers/net/wireless/prism54/isl_ioctl.c
drivers/net/wireless/prism54/oid_mgt.c