X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fcompat_ioctl.c;h=f854cf9355a8e2dc03f0670953d789f29c65e4d0;hb=9a8d305befe3218c7523179c0d406d876b5cbbed;hp=51352de88ef10ea41583661f39625f93b475aa34;hpb=286d6e70aa6cf0f0235653eb1049bfc04610b4fb;p=pandora-kernel.git diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c index 51352de88ef1..f854cf9355a8 100644 --- a/fs/compat_ioctl.c +++ b/fs/compat_ioctl.c @@ -210,6 +210,8 @@ static int do_video_set_spu_palette(unsigned int fd, unsigned int cmd, err = get_user(palp, &up->palette); err |= get_user(length, &up->length); + if (err) + return -EFAULT; up_native = compat_alloc_user_space(sizeof(struct video_spu_palette)); err = put_user(compat_ptr(palp), &up_native->palette);