public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix irq flags in mac80211 code
@ 2008-05-01 22:48 Steven Rostedt
  2008-05-02  6:50 ` Mattias Nissler
  0 siblings, 1 reply; 2+ messages in thread
From: Steven Rostedt @ 2008-05-01 22:48 UTC (permalink / raw)
  To: LKML; +Cc: akpm, Mattias Nissler


A file in the net/mac80211 directory uses "int" for flags. This can
cause hard to find bugs on some architectures. This patch converts the
flags to use "long" instead.

This bug was discovered by doing an allyesconfig make on the -rt kernel
where checks are done to ensure all flags are of size sizeof(long).

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
---
 net/mac80211/rc80211_pid_debugfs.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Index: linux-compile.git/net/mac80211/rc80211_pid_debugfs.c
===================================================================
--- linux-compile.git.orig/net/mac80211/rc80211_pid_debugfs.c	2008-05-01 16:59:01.000000000 -0400
+++ linux-compile.git/net/mac80211/rc80211_pid_debugfs.c	2008-05-01 18:32:08.000000000 -0400
@@ -85,7 +85,7 @@ static int rate_control_pid_events_open(
 	struct rc_pid_sta_info *sinfo = inode->i_private;
 	struct rc_pid_event_buffer *events = &sinfo->events;
 	struct rc_pid_events_file_info *file_info;
-	unsigned int status;
+	unsigned long status;

 	/* Allocate a state struct */
 	file_info = kmalloc(sizeof(*file_info), GFP_KERNEL);
@@ -135,7 +135,7 @@ static ssize_t rate_control_pid_events_r
 	char pb[RC_PID_PRINT_BUF_SIZE];
 	int ret;
 	int p;
-	unsigned int status;
+	unsigned long status;

 	/* Check if there is something to read. */
 	if (events->next_entry == file_info->next_entry) {


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] fix irq flags in mac80211 code
  2008-05-01 22:48 [PATCH] fix irq flags in mac80211 code Steven Rostedt
@ 2008-05-02  6:50 ` Mattias Nissler
  0 siblings, 0 replies; 2+ messages in thread
From: Mattias Nissler @ 2008-05-02  6:50 UTC (permalink / raw)
  To: Steven Rostedt; +Cc: LKML, akpm

On Thu, 2008-05-01 at 18:48 -0400, Steven Rostedt wrote:
> A file in the net/mac80211 directory uses "int" for flags. This can
> cause hard to find bugs on some architectures. This patch converts the
> flags to use "long" instead.
> 
> This bug was discovered by doing an allyesconfig make on the -rt kernel
> where checks are done to ensure all flags are of size sizeof(long).

Good catch, thanks.

Mattias


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-05-02  6:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-01 22:48 [PATCH] fix irq flags in mac80211 code Steven Rostedt
2008-05-02  6:50 ` Mattias Nissler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox