From patchwork Mon Oct 4 19:24:59 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Carpenter X-Patchwork-Id: 66726 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 90668B6EF2 for ; Tue, 5 Oct 2010 06:25:54 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932479Ab0JDTZT (ORCPT ); Mon, 4 Oct 2010 15:25:19 -0400 Received: from mail-ew0-f46.google.com ([209.85.215.46]:35570 "EHLO mail-ew0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932419Ab0JDTZR (ORCPT ); Mon, 4 Oct 2010 15:25:17 -0400 Received: by ewy23 with SMTP id 23so2146923ewy.19 for ; Mon, 04 Oct 2010 12:25:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:mail-followup-to:mime-version:content-type :content-disposition:user-agent; bh=2DbjBgTn/J1bHWP4CsGrsIqCJYesashqN1XuiwXCTF4=; b=QK6T8VfNTvueSM9ZskMvT+dMZcWOPew80h7bB4nl8pOUxEZFDjtKJwgdsS+OprMdB6 6AplnkBF9hNXd8XyeT38Ddo1P4HyMY564lA5a6acaYOTzAiHKSGYSg4J+tes9Lqa/lNA 8PP86k/DQoe936WhEycYlb/T/oRxDI6I/DetQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:mail-followup-to:mime-version :content-type:content-disposition:user-agent; b=po9LfgHSWZ1P1gKgFNJ8+4kQ+hOsHSG0O7aaU62pNe3Q8ZFuqXQn8nskMr9Mz9f6pU YD5hXy1GYcDG45PSX3gy793XYw5Dcid3O4pivrxMQR9Ti4lAcyF+cYU4c0c5ZgN1sbP1 yFRYYOMQAiUhsBqX0aEPcjm0b2InU3gnTQaqU= Received: by 10.216.51.66 with SMTP id a44mr47966wec.7.1286220316052; Mon, 04 Oct 2010 12:25:16 -0700 (PDT) Received: from bicker (h3f04.n1.ips.mtn.co.ug [41.210.191.4]) by mx.google.com with ESMTPS id o49sm3250762wej.19.2010.10.04.12.25.09 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 04 Oct 2010 12:25:13 -0700 (PDT) Date: Mon, 4 Oct 2010 21:24:59 +0200 From: Dan Carpenter To: Armin Schindler Cc: Karsten Keil , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [patch] eicon: make buffer larger Message-ID: <20101004192459.GE5692@bicker> Mail-Followup-To: Dan Carpenter , Armin Schindler , Karsten Keil , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org In diva_mnt_add_xdi_adapter() we do this: strcpy (clients[id].drvName, tmp); strcpy (clients[id].Dbg.drvName, tmp); The "clients[id].drvName" is a 128 character buffer and "clients[id].Dbg.drvName" was originally a 16 character buffer but I've changed it to 128 as well. We don't actually use 128 characters but we do use more than 16. I've also changed the size of "tmp" to 128 characters instead of 256. Signed-off-by: Dan Carpenter --- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/isdn/hardware/eicon/debuglib.h b/drivers/isdn/hardware/eicon/debuglib.h index 8ea5877..02eed6b 100644 --- a/drivers/isdn/hardware/eicon/debuglib.h +++ b/drivers/isdn/hardware/eicon/debuglib.h @@ -249,7 +249,7 @@ typedef struct _DbgHandle_ } regTime ; /* timestamp for registration */ void *pIrp ; /* ptr to pending i/o request */ unsigned long dbgMask ; /* current debug mask */ - char drvName[16] ; /* ASCII name of registered driver */ + char drvName[128] ; /* ASCII name of registered driver */ char drvTag[64] ; /* revision string */ DbgEnd dbg_end ; /* function for debug closing */ DbgLog dbg_prt ; /* function for debug appending */ diff --git a/drivers/isdn/hardware/eicon/debug.c b/drivers/isdn/hardware/eicon/debug.c index 33ce89e..3626401 100644 --- a/drivers/isdn/hardware/eicon/debug.c +++ b/drivers/isdn/hardware/eicon/debug.c @@ -862,7 +862,7 @@ void diva_mnt_add_xdi_adapter (const DESCRIPTOR* d) { diva_os_spin_lock_magic_t old_irql, old_irql1; dword sec, usec, logical, serial, org_mask; int id, best_id = 0, free_id = -1; - char tmp[256]; + char tmp[128]; diva_dbg_entry_head_t* pmsg = NULL; int len; word size;