The patch titled block/genhd.c: check class_register return value has been removed from the -mm tree. Its filename was block-genhdc-check-class_register-return-value.patch This patch was dropped because it was merged into mainline or a subsystem tree The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: block/genhd.c: check class_register return value From: Leonardo Potenza <lpotenza@xxxxxxxxx> Add a check for the class_register() return value. Signed-off-by: Leonardo Potenza <lpotenza@xxxxxxxxx> Cc: Jens Axboe <jens.axboe@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- block/genhd.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff -puN block/genhd.c~block-genhdc-check-class_register-return-value block/genhd.c --- a/block/genhd.c~block-genhdc-check-class_register-return-value +++ a/block/genhd.c @@ -360,7 +360,12 @@ static struct kobject *base_probe(dev_t static int __init genhd_device_init(void) { - class_register(&block_class); + int ret; + + ret = class_register(&block_class); + if (ret != 0) + return ret; + bdev_map = kobj_map_init(base_probe, &block_class_lock); blk_dev_init(); _ Patches currently in -mm which might be from lpotenza@xxxxxxxxx are -- 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