diff options
author | Stefan Agner <stefan@agner.ch> | 2014-07-15 12:56:20 (GMT) |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2014-08-17 23:03:39 (GMT) |
commit | ec56acfef2af184ca485ffeba16adbd56c110c94 (patch) | |
tree | 3c7509c81a1ae6854a437a7d98f0df313e1e0565 /net/dccp/ipv4.c | |
parent | 4ade6feb52262eae0c40d6714e3446bfa4d19a5f (diff) | |
download | linux-ec56acfef2af184ca485ffeba16adbd56c110c94.tar.xz |
can: flexcan: flexcan_get_berr_counter(): switch on clocks before accessing ecr register
The funcion flexcan_get_berr_counter() may be called from userspace even if the
interface is down, this the clocks are disabled. This patch switches on the
clocks before accessing the ecr register.
Reported-by: Ashutosh Singh <ashuleapyear@gmail.com>
Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'net/dccp/ipv4.c')
0 files changed, 0 insertions, 0 deletions