diff mbox

amso1100: Add missing memset

Message ID 20100414142015.GA16260@vlad-laptop (mailing list archive)
State Rejected
Headers show

Commit Message

Vladimir Sokolovsky April 14, 2010, 2:20 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/infiniband/hw/amso1100/c2_rnic.c b/drivers/infiniband/hw/amso1100/c2_rnic.c
index dd05c48..bac9856 100644
--- a/drivers/infiniband/hw/amso1100/c2_rnic.c
+++ b/drivers/infiniband/hw/amso1100/c2_rnic.c
@@ -155,6 +155,8 @@  static int c2_rnic_query(struct c2_dev *c2dev, struct ib_device_attr *props)
 	if (err)
 		goto bail2;
 
+	memset(props, 0, sizeof *props);
+
 	props->fw_ver =
 		((u64)be32_to_cpu(reply->fw_ver_major) << 32) |
 		((be32_to_cpu(reply->fw_ver_minor) & 0xFFFF) << 16) |