提交 bb55bdd5 编写于 作者: S Steven Rostedt 提交者: John W. Linville

fix irq flags in mac80211 code

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: NSteven Rostedt <srostedt@redhat.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 85b442e3
...@@ -85,7 +85,7 @@ static int rate_control_pid_events_open(struct inode *inode, struct file *file) ...@@ -85,7 +85,7 @@ static int rate_control_pid_events_open(struct inode *inode, struct file *file)
struct rc_pid_sta_info *sinfo = inode->i_private; struct rc_pid_sta_info *sinfo = inode->i_private;
struct rc_pid_event_buffer *events = &sinfo->events; struct rc_pid_event_buffer *events = &sinfo->events;
struct rc_pid_events_file_info *file_info; struct rc_pid_events_file_info *file_info;
unsigned int status; unsigned long status;
/* Allocate a state struct */ /* Allocate a state struct */
file_info = kmalloc(sizeof(*file_info), GFP_KERNEL); file_info = kmalloc(sizeof(*file_info), GFP_KERNEL);
...@@ -135,7 +135,7 @@ static ssize_t rate_control_pid_events_read(struct file *file, char __user *buf, ...@@ -135,7 +135,7 @@ static ssize_t rate_control_pid_events_read(struct file *file, char __user *buf,
char pb[RC_PID_PRINT_BUF_SIZE]; char pb[RC_PID_PRINT_BUF_SIZE];
int ret; int ret;
int p; int p;
unsigned int status; unsigned long status;
/* Check if there is something to read. */ /* Check if there is something to read. */
if (events->next_entry == file_info->next_entry) { if (events->next_entry == file_info->next_entry) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册