Re: [PATCH] pstore/ramoops: fixup driver removal

2016-08-30 Thread Namhyung Kim
(Resending with all recipients, sorry) On Sat, Aug 20, 2016 at 1:52 AM, Sebastian Andrzej Siewior wrote: > A basic rmmod ramoops segfaults. Let's see why. > > Since commit 34f0ec82e0a9 ("pstore: Correct the max_dump_cnt clearing of > ramoops") sets ->max_dump_cnt to zero before looping over ->prz

[PATCH] pstore/ramoops: fixup driver removal

2016-08-19 Thread Sebastian Andrzej Siewior
A basic rmmod ramoops segfaults. Let's see why. Since commit 34f0ec82e0a9 ("pstore: Correct the max_dump_cnt clearing of ramoops") sets ->max_dump_cnt to zero before looping over ->przs but we didn't use it before that either. And since commit ee1d267423a1 ("pstore: add pstore unregister") we fre