Skip to content
Commit 2f32c867 authored by J. K. Cliburn's avatar J. K. Cliburn Committed by David S. Miller
Browse files

atl1: fix oops when changing tx/rx ring params



Commit 3f5a2a71 zeroes out the statistics
message block (SMB) and coalescing message block (CMB) when adapter ring
resources are freed.  This is desirable behavior, but, as a side effect,
the commit leads to an oops when atl1_set_ringparam() attempts to alter
the number of rx or tx elements in the ring buffer (by using ethtool
-G, for example).  We don't want SMB or CMB to change during this
operation.

Modify atl1_set_ringparam() to preserve SMB and CMB when changing ring
parameters.

Cc: stable@kernel.org
Signed-off-by: default avatarJay Cliburn <jcliburn@gmail.com>
Reported-by: default avatarTõnu Raitviir <jussuf@linux.ee>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b9556f9a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment