diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2017-04-10 16:28:09 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-04-13 10:59:11 -0400 |
commit | 7093a9702e00274fde609d634010a5833b45b229 (patch) | |
tree | d39c5d09418f3e4029c94b52c8c5939dd284f7ab /Documentation | |
parent | 37282485dd4c95c4a637cfa263a0753216f1ec24 (diff) |
net: mvmdio: fix interrupt disable in remove path
The pre-existing write to disable interrupts on the remove path happens
whether we have an interrupt or not. While this may seem to be a good
idea, this driver is re-used in many different implementations, some
where the binding only specifies four bytes of register space. This
access causes us to access registers outside of the binding.
Make it conditional on the interrupt being present, which is the same
condition used when enabling the interrupt in the first place.
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions