Skip to contentSkip to conversation

sparse annotations for MSR driver

PATCH New [email protected] 1 participant 1 message Aug 11, 2003

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sparse annotations for MSR driver

arch/i386/kernel/msr.c +2 -2
diff -urpN --exclude-from=/home/davej/.exclude bk-linus/arch/i386/kernel/msr.c linux-2.5/arch/i386/kernel/msr.c
@@ -187,7 +187,7 @@ static loff_t msr_seek(struct file *file
   return ret;
 }
 
-static ssize_t msr_read(struct file * file, char * buf,
+static ssize_t msr_read(struct file * file, char __user * buf,
 			size_t count, loff_t *ppos)
 {
   u32 *tmp = (u32 *)buf;
@@ -212,7 +212,7 @@ static ssize_t msr_read(struct file * fi
   return ((char *)tmp) - buf;
 }
 
-static ssize_t msr_write(struct file * file, const char * buf,
+static ssize_t msr_write(struct file * file, const char __user * buf,
 			 size_t count, loff_t *ppos)
 {
   const u32 *tmp = (const u32 *)buf;