Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: linux-fbdev-devel@lists.sourceforge.net --- drivers/video/aty/radeon_base.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) Index: 2.6-git/drivers/video/aty/radeon_base.c =================================================================== --- 2.6-git.orig/drivers/video/aty/radeon_base.c +++ 2.6-git/drivers/video/aty/radeon_base.c @@ -70,6 +70,7 @@ #include <linux/pci.h> #include <linux/vmalloc.h> #include <linux/device.h> +#include <linux/fs.h> #include <asm/io.h> #include <linux/uaccess.h> @@ -2098,15 +2099,7 @@ static void radeon_identify_vram(struct static ssize_t radeon_show_one_edid(char *buf, loff_t off, size_t count, const u8 *edid) { - if (off > EDID_LENGTH) - return 0; - - if (off + count > EDID_LENGTH) - count = EDID_LENGTH - off; - - memcpy(buf, edid + off, count); - - return count; + return memory_read_from_buffer(buf, count, &off, edid, EDID_LENGTH); } -- --
| H. Peter Anvin | Re: [RFC 00/15] x86_64: Optimize percpu accesses |
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Eric W. Biederman | Remaining straight forward kthread API conversions... |
| Greg Kroah-Hartman | [PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO |
| David Miller | [GIT]: Networking |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Frans Pop | svc: failed to register lockdv1 RPC service (errno 97). |
git: | |
