mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts: drivers/net/sfc/sfe4001.c drivers/net/wireless/libertas/cmd.c drivers/staging/Kconfig drivers/staging/Makefile drivers/staging/rtl8187se/Kconfig drivers/staging/rtl8192e/Kconfig
This commit is contained in:
commit
3505d1a9fd
1961 changed files with 85021 additions and 28664 deletions
|
|
@ -18,6 +18,7 @@
|
|||
#include <linux/device.h>
|
||||
#include <linux/file.h>
|
||||
#include <linux/cdev.h>
|
||||
#include <linux/sched.h>
|
||||
#include <linux/spinlock.h>
|
||||
#include <linux/delay.h>
|
||||
#include <linux/uaccess.h>
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include <linux/sched.h>
|
||||
#include "ibmasm.h"
|
||||
#include "lowlevel.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include <linux/sched.h>
|
||||
#include "ibmasm.h"
|
||||
#include "lowlevel.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include <linux/sched.h>
|
||||
#include "ibmasm.h"
|
||||
#include "dot_command.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
#include <linux/interrupt.h>
|
||||
#include <linux/cdev.h>
|
||||
#include <linux/phantom.h>
|
||||
#include <linux/sched.h>
|
||||
#include <linux/smp_lock.h>
|
||||
|
||||
#include <asm/atomic.h>
|
||||
|
|
|
|||
|
|
@ -161,14 +161,15 @@ static int options_show(struct seq_file *s, void *p)
|
|||
static ssize_t options_write(struct file *file, const char __user *userbuf,
|
||||
size_t count, loff_t *data)
|
||||
{
|
||||
unsigned long val;
|
||||
char buf[80];
|
||||
char buf[20];
|
||||
|
||||
if (strncpy_from_user(buf, userbuf, sizeof(buf) - 1) < 0)
|
||||
if (count >= sizeof(buf))
|
||||
return -EINVAL;
|
||||
if (copy_from_user(buf, userbuf, count))
|
||||
return -EFAULT;
|
||||
buf[count - 1] = '\0';
|
||||
if (!strict_strtoul(buf, 10, &val))
|
||||
gru_options = val;
|
||||
buf[count] = '\0';
|
||||
if (strict_strtoul(buf, 0, &gru_options))
|
||||
return -EINVAL;
|
||||
|
||||
return count;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue