smc911x: Make the driver safer on SMP
authorCatalin Marinas <catalin.marinas@arm.com>
Mon, 20 Oct 2008 17:15:37 +0000 (18:15 +0100)
committerJeff Garzik <jgarzik@redhat.com>
Wed, 22 Oct 2008 11:00:41 +0000 (07:00 -0400)
commitb891a9023bc4fc639b31c234a705e7e51104cf22
tree0f17ecfb53069f6d3ae92f503c40d1dcbf216268
parent319edafef64406c971035c56bd68480e5a82b581
smc911x: Make the driver safer on SMP

This patch extends the critical regions covered by lp->lock to make it
safer on SMP. The main failure point was the smc911x_hard_start_xmit
function being called from different CPUs. It was tested on the ARM SMP
platforms.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/smc911x.c