]> Git Repo - linux.git/commit - drivers/net/s2io.c
Fix a potential NULL pointer dereference in free_shared_mem() in drivers/net/s2io.c
authorMicah Gruber <[email protected]>
Mon, 9 Jul 2007 03:29:04 +0000 (11:29 +0800)
committerJeff Garzik <[email protected]>
Mon, 16 Jul 2007 21:56:00 +0000 (17:56 -0400)
commit8910b49fbb8d4517a20bb3de7dc239dcfa7d2b6f
treec8ccd449c333a82cf8837df8275eec92d9986640
parent4c75f7416f51b0c6855952467a5db04f9c598f09
Fix a potential NULL pointer dereference in free_shared_mem() in drivers/net/s2io.c

This patch fixes a potential null dereference bug where we dereference
nic before a null check. This patch simply moves the dereferencing
after the null check.

Signed-off-by: Micah Gruber < [email protected]>
Signed-off-by: Jeff Garzik <[email protected]>
drivers/net/s2io.c
This page took 0.055453 seconds and 4 git commands to generate.