The patch titled unregister_blkdev(): do WARN_ON on failure has been added to the -mm tree. Its filename is unregister_blkdev-do-warn_on-on-failure.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: unregister_blkdev(): do WARN_ON on failure From: Akinobu Mita <akinobu.mita@xxxxxxxxx> When unregister_blkdev() has failed, something wrong happened. This patch adds WARN_ON to notify of such badness. Cc: Jens Axboe <jens.axboe@xxxxxxxxxx> Signed-off-by: Akinobu Mita <akinobu.mita@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- block/genhd.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff -puN block/genhd.c~unregister_blkdev-do-warn_on-on-failure block/genhd.c --- a/block/genhd.c~unregister_blkdev-do-warn_on-on-failure +++ a/block/genhd.c @@ -120,9 +120,10 @@ int unregister_blkdev(unsigned int major for (n = &major_names[index]; *n; n = &(*n)->next) if ((*n)->major == major) break; - if (!*n || strcmp((*n)->name, name)) + if (!*n || strcmp((*n)->name, name)) { + WARN_ON(1); ret = -EINVAL; - else { + } else { p = *n; *n = p->next; } _ Patches currently in -mm which might be from akinobu.mita@xxxxxxxxx are git-dvb.patch git-netdev-all.patch auth_gss-unregister-gss_domain-when-unloading-module.patch fault-injection-add-min-order-parameter-to-fail_page_alloc.patch fault-injection-fix-example-scripts-in-documentation.patch unregister_chrdev-ignore-the-return-value.patch unregister_chrdev-return-void.patch unregister_blkdev-do-warn_on-on-failure.patch unregister_blkdev-delete-redundant-messages-in-callers.patch unregister_blkdev-delete-redundant-message.patch unregister_blkdev-return-void.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html