Permalink
Browse files

Fix kernel panic on instance removal

It was triggering reliably on 3.15 (and below) and RHEL kernels.
  • Loading branch information...
ydahhrk committed Dec 13, 2018
1 parent 0557f39 commit 7dd5b76467cdc161d5549a6e20be53612d6e5643
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/mod/common/stats.c
@@ -49,7 +49,11 @@ static void jstat_release(struct kref *refcount)
struct jool_stats *stats;
stats = container_of(refcount, struct jool_stats, refcounter);

#if LINUX_VERSION_AT_LEAST(3, 16, 0, 9999, 0)
free_percpu(stats->mib);
#else
snmp_mib_free((void __percpu **)stats->mib);
#endif
wkfree(struct jool_stats, stats);
}

0 comments on commit 7dd5b76

Please sign in to comment.