From 7bbfb5987410f893f0b4d3c3cbc6d41ec3774f1a Mon Sep 17 00:00:00 2001 From: Heiko Carstens Date: Wed, 6 Dec 2006 20:36:37 -0800 Subject: [PATCH] --- yaml --- r: 42803 b: refs/heads/master c: 064b022c7adb2d853378078a9dc141f8288d1c73 h: refs/heads/master i: 42801: fc75be25b542171fb6f62005cf50486de28d64a8 42799: 017aeb36118b2e559a51b4373c4ab29072c56768 v: v3 --- [refs] | 2 +- trunk/kernel/profile.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 0127e2f4c8ff..728febfeea89 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 7116e994b47f3988389be4ceee67dac64b56e0d0 +refs/heads/master: 064b022c7adb2d853378078a9dc141f8288d1c73 diff --git a/trunk/kernel/profile.c b/trunk/kernel/profile.c index f940b462eec9..15b012df4ff1 100644 --- a/trunk/kernel/profile.c +++ b/trunk/kernel/profile.c @@ -442,7 +442,8 @@ read_profile(struct file *file, char __user *buf, size_t count, loff_t *ppos) read = 0; while (p < sizeof(unsigned int) && count > 0) { - put_user(*((char *)(&sample_step)+p),buf); + if (put_user(*((char *)(&sample_step)+p),buf)) + return -EFAULT; buf++; p++; count--; read++; } pnt = (char *)prof_buffer + p - sizeof(atomic_t);