[PATCH] mf_proc.c
Dave Boitcjer
sleddog at us.ibm.com
Wed Apr 28 12:41:44 EST 2004
This patch was submitted by Olaf Hering to fix mf_proc.c where it
does not return error values correctly.
Paul/Anton, please apply and move upstream when you next bundle
things up.
Dave B
===== mf_proc.c 1.7 vs edited =====
--- 1.7/arch/ppc64/kernel/mf_proc.c Tue Mar 16 18:46:43 2004
+++ edited/mf_proc.c Tue Apr 27 12:37:03 2004
@@ -177,10 +177,14 @@
static int proc_mf_change_vmlinux(struct file *file, const char
*buffer,
unsigned long count, void *data)
{
+ int rc;
if (!capable(CAP_SYS_ADMIN))
return -EACCES;
- mf_setVmlinuxChunk(buffer, count, file->f_pos, (u64)data);
+ rc = mf_setVmlinuxChunk(buffer, count, file->f_pos, (u64)data);
+ if (rc < 0)
+ return rc;
+
file->f_pos += count;
return count;
** Sent via the linuxppc64-dev mail list. See http://lists.linuxppc.org/
More information about the Linuxppc64-dev
mailing list