From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roland Dreier Subject: variable length array in qib Date: Wed, 02 Jun 2010 14:37:04 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Ralph Campbell , linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-rdma@vger.kernel.org qib has the code void qib_disarm_piobufs_set(struct qib_devdata *dd, unsigned long *mask, unsigned cnt) { struct qib_pportdata *ppd, *pppd[dd->num_pports]; it would probably be safer to avoid the variable length array pppd[] on the kernel stack here... could this code be easily refactored to avoid doing that? -- Roland Dreier || For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/index.html -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html