drbd: poison free'd device, resource and connection structs
authorLars Ellenberg <lars.ellenberg@linbit.com>
Wed, 14 May 2014 19:35:21 +0000 (21:35 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 10 Jul 2014 16:35:09 +0000 (18:35 +0200)
commitc2258ffc56f2b34573c2917937190c1491620334
treeb202e9693aa3520a622bae29e85efbf3f70a9312
parent45d2933c921c51ddd2780a806193ab00e03fe215
drbd: poison free'd device, resource and connection structs

Now that we have additional asynchronous kref_get/kref_put
via debugfs, make sure we catch access after free.

Poison struct drbd_device, drbd_connection and drbd_resource
before kfree() with 0xfd, 0xfc, and 0xf2, respectively.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
drivers/block/drbd/drbd_main.c