Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262280AbVBCFkZ (ORCPT ); Thu, 3 Feb 2005 00:40:25 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262262AbVBCFkZ (ORCPT ); Thu, 3 Feb 2005 00:40:25 -0500 Received: from umhlanga.stratnet.net ([12.162.17.40]:219 "EHLO umhlanga.STRATNET.NET") by vger.kernel.org with ESMTP id S262602AbVBCFkR (ORCPT ); Thu, 3 Feb 2005 00:40:17 -0500 To: akpm@osdl.org Cc: linux-kernel@vger.kernel.org, openib-general@openib.org Subject: [PATCH] InfiniBand: add missing break between cases X-Message-Flag: Warning: May contain useful information From: Roland Dreier Date: Wed, 02 Feb 2005 21:40:16 -0800 Message-ID: <52y8e65hhb.fsf@topspin.com> User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Corporate Culture, linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-OriginalArrivalTime: 03 Feb 2005 05:40:16.0896 (UTC) FILETIME=[D72F5800:01C509B2] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 867 Lines: 24 From: Libor Michalek Add a missing break statement between RC and UD cases in mthca_post_send(). This fixes a possible oops for protocols that use the RC transport. Signed-off-by: Libor Michalek Signed-off-by: Roland Dreier --- linux-bk.orig/drivers/infiniband/hw/mthca/mthca_qp.c 2005-01-28 11:11:02.000000000 -0800 +++ linux-bk/drivers/infiniband/hw/mthca/mthca_qp.c 2005-02-02 21:35:09.683871535 -0800 @@ -1323,6 +1323,8 @@ break; } + break; + case UD: ((struct mthca_ud_seg *) wqe)->lkey = cpu_to_be32(to_mah(wr->wr.ud.ah)->key); - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/