]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - mm/backing-dev.c
ipv6: allow to send packet after receiving ICMPv6 Too Big message with MTU field...
[net-next-2.6.git] / mm / backing-dev.c
index 0e8ca0347707b62d9cfb35a3fb353f2bf6f79e6a..f13e067e1467dcbd6cae04f92b7701f814758e03 100644 (file)
@@ -227,6 +227,9 @@ static struct device_attribute bdi_dev_attrs[] = {
 static __init int bdi_class_init(void)
 {
        bdi_class = class_create(THIS_MODULE, "bdi");
+       if (IS_ERR(bdi_class))
+               return PTR_ERR(bdi_class);
+
        bdi_class->dev_attrs = bdi_dev_attrs;
        bdi_debug_init();
        return 0;