diff --git a/lustre/kernel_patches/patches/fix-mlx4-2.6.patch b/lustre/kernel_patches/patches/fix-mlx4-2.6.patch
new file mode 100644
index 0000000..eafd9f5
--- /dev/null
+++ b/lustre/kernel_patches/patches/fix-mlx4-2.6.patch
@@ -0,0 +1,11 @@
+--- linux-2.6.18-371.el5.x86_64/drivers/infiniband/hw/mlx4/main.c	2014-01-07 09:52:49.748330013 -0800
++++ linux-2.6.18-371.el5.x86_64/drivers/infiniband/hw/mlx4/main.c	2014-01-07 12:54:28.452582501 -0800
+@@ -272,7 +272,7 @@ static int ib_link_query_port(struct ib_
+ 		}
+ 	}
+ 
+-	return 0;
++	err = 0;
+ out:
+ 	kfree(in_mad);
+ 	kfree(out_mad);
diff --git a/lustre/kernel_patches/series/2.6-rhel5.series b/lustre/kernel_patches/series/2.6-rhel5.series
index c16a1f6..4e39f23 100644
--- a/lustre/kernel_patches/series/2.6-rhel5.series
+++ b/lustre/kernel_patches/series/2.6-rhel5.series
@@ -29,3 +29,4 @@ make-bi_phys_segments-uint.patch
 dont-try-to-allocate-more-than-BIO_MAX_PAGES-in-a-bio.patch
 jbd2-tid-wrap.patch
 jbd2-log_wait_for_space-2.6-rhel5.patch
+fix-mlx4-2.6.patch
