diff options
author | Stephane Grosjean <s.grosjean@peak-system.com> | 2014-05-20 11:38:56 +0200 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2014-05-21 08:17:03 +0200 |
commit | 0b5a958cf4df3a5cd578b861471e62138f55c85e (patch) | |
tree | be02fbf4f83f6a1a9c89239951c6da0ba6720355 /tools/perf/builtin-record.c | |
parent | 78ff4be45a4c51d8fb21ad92e4fabb467c6c3eeb (diff) | |
download | blackbird-op-linux-0b5a958cf4df3a5cd578b861471e62138f55c85e.tar.gz blackbird-op-linux-0b5a958cf4df3a5cd578b861471e62138f55c85e.zip |
can: peak_pci: prevent use after free at netdev removal
As remarked by Christopher R. Baker in his post at
http://marc.info/?l=linux-can&m=139707295706465&w=2
there's a possibility for an use after free condition at device removal.
This simplified patch introduces an additional variable to prevent the issue.
Thanks for catching this.
Cc: linux-stable <stable@vger.kernel.org>
Reported-by: Christopher R. Baker <cbaker@rec.ri.cmu.edu>
Signed-off-by: Stephane Grosjean <s.grosjean@peak-system.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'tools/perf/builtin-record.c')
0 files changed, 0 insertions, 0 deletions