winmad: fix crash and handle mads > 256 correctly
authorshefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 24 Feb 2009 23:04:49 +0000 (23:04 +0000)
committershefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 24 Feb 2009 23:04:49 +0000 (23:04 +0000)
commit3fa88420432d4bb5fa6afa7dc516bf35a2d158d1
tree9cd282f64bb34f818bcaf9354fa00f6201be4559
parent26617f68f1378f0c53cbfcebb4a129b6ec3f9cd9
winmad: fix crash and handle mads > 256 correctly

Fix crash if driver is loaded, but does not go active (power D0) before being unloaded.  Also handle mads > 256 bytes by checking against STATUS_SUCCESS, rather than for a successful status.  STATUS_MORE_ENTRIES is a successful status, but not what we're interested in.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1983 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
core/winmad/kernel/wm_driver.c
core/winmad/kernel/wm_provider.c
core/winmad/user/SOURCES