From patchwork Thu Mar 31 09:29:21 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yann Droneaud X-Patchwork-Id: 678721 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p2V9bjmD009809 for ; Thu, 31 Mar 2011 09:37:45 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933519Ab1CaJhh (ORCPT ); Thu, 31 Mar 2011 05:37:37 -0400 Received: from smtp04.smtpout.orange.fr ([80.12.242.126]:21627 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933559Ab1CaJhg (ORCPT ); Thu, 31 Mar 2011 05:37:36 -0400 Received: from deela.quest-ce.net ([80.12.82.111]) by mwinf5d03 with ME id RlVb1g00M2Q6X8003lVbwY; Thu, 31 Mar 2011 11:29:35 +0200 Received: from deela.quest-ce.net (deela.quest-ce.net [127.0.0.1]) by deela.quest-ce.net (8.14.4/8.14.4) with ESMTP id p2V9TSSZ011630; Thu, 31 Mar 2011 11:29:28 +0200 Received: (from ydroneaud@localhost) by deela.quest-ce.net (8.14.4/8.14.4/Submit) id p2V9TS4B011629; Thu, 31 Mar 2011 11:29:28 +0200 From: Yann Droneaud To: linux-rdma@vger.kernel.org Cc: Yann Droneaud Subject: [PATCH 1/5] load_drivers: reset the list head after releasing items Date: Thu, 31 Mar 2011 11:29:21 +0200 Message-Id: X-Mailer: git-send-email 1.7.4.2 In-Reply-To: References: In-Reply-To: References: Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Thu, 31 Mar 2011 09:37:45 +0000 (UTC) diff --git a/src/init.c b/src/init.c index 4f0130e..9e235e8 100644 --- a/src/init.c +++ b/src/init.c @@ -232,6 +232,8 @@ static void load_drivers(void) free(name->name); free(name); } + + driver_name_list = NULL; } static void read_config_file(const char *path)