[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1327960820-11867-2-git-send-email-danny.kukawka@bisect.de>
Date: Mon, 30 Jan 2012 23:00:05 +0100
From: Danny Kukawka <danny.kukawka@...ect.de>
To: Armin Schindler <mac@...ware.de>
Cc: linux-kernel@...r.kernel.org, netdev@...r.kernel.org,
Karsten Keil <isdn@...ux-pingi.de>
Subject: [PATCH 01/16] eicon: fix -Warray-bounds warning
Fix for a -Warray-bounds warning. mixer_notify_update() tries to
write to ((CAPI_MSG *) msg)->info.facility_req.structs[3] while
structs is defined as byte structs[1], define structs[1] as
structs[4].
Signed-off-by: Danny Kukawka <danny.kukawka@...ect.de>
---
drivers/isdn/hardware/eicon/capi20.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/isdn/hardware/eicon/capi20.h b/drivers/isdn/hardware/eicon/capi20.h
index 7ebcccd..f9170ad 100644
--- a/drivers/isdn/hardware/eicon/capi20.h
+++ b/drivers/isdn/hardware/eicon/capi20.h
@@ -226,7 +226,7 @@ typedef struct {
/* FACILITY-REQUEST */
typedef struct {
word Selector;
- byte structs[1]; /* Facility parameters */
+ byte structs[4]; /* Facility parameters */
} _FAC_REQP;
/* FACILITY-CONFIRM STRUCT FOR SUPPLEMENT. SERVICES */
typedef struct {
--
1.7.7.3
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists