diff options
author | Fabio Erculiani <lxnay@gentoo.org> | 2010-11-19 21:35:37 +0000 |
---|---|---|
committer | Fabio Erculiani <lxnay@gentoo.org> | 2010-11-19 21:35:37 +0000 |
commit | 39a153aeae226958b26a2167bb5a16c31f18609e (patch) | |
tree | 963189a91212413df5ca406ee66167d55ecf28b6 /media-libs/svgalib/files | |
parent | Port portpeek to use newer version of gentoolkit (diff) | |
download | gentoo-2-39a153aeae226958b26a2167bb5a16c31f18609e.tar.gz gentoo-2-39a153aeae226958b26a2167bb5a16c31f18609e.tar.bz2 gentoo-2-39a153aeae226958b26a2167bb5a16c31f18609e.zip |
update 2.6.36 patch, close bug #346115
(Portage version: 2.2_rc91/cvs/Linux x86_64)
Diffstat (limited to 'media-libs/svgalib/files')
-rw-r--r-- | media-libs/svgalib/files/svgalib-1.9.25-linux2.6.36.patch | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/media-libs/svgalib/files/svgalib-1.9.25-linux2.6.36.patch b/media-libs/svgalib/files/svgalib-1.9.25-linux2.6.36.patch index 33cf7e9b1417..eed935ebef4d 100644 --- a/media-libs/svgalib/files/svgalib-1.9.25-linux2.6.36.patch +++ b/media-libs/svgalib/files/svgalib-1.9.25-linux2.6.36.patch @@ -1,24 +1,22 @@ --- svgalib-1.9.25.orig/kernel/svgalib_helper/main.c +++ svgalib-1.9.25/kernel/svgalib_helper/main.c -@@ -162,10 +162,16 @@ static void task_startad(void *data) { - get_user(pciv.address, &user_pciv->address); \ +@@ -163,8 +163,15 @@ static void task_startad(void *data) { get_user(pciv.val, &user_pciv->val); #define PUT_PCIV \ -- put_user(pciv.val, &user_pciv->val); -+ put_user(pciv.val, &user_pciv->val); + put_user(pciv.val, &user_pciv->val); +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,36) static int svgalib_helper_ioctl( struct inode *inode, struct file *filp, unsigned int cmd, unsigned long arg) { +#else +static int svgalib_helper_ioctl(struct file *filp, + unsigned int cmd, unsigned long arg) { ++ ++ struct inode *inode=filp->f_dentry->d_inode; +#endif -+ struct inode *inode=filp->f_dentry->d_inode; io_t iov, *user_iov=(io_t *)arg; pcic_t pciv, *user_pciv=(pcic_t *)arg; - int minor = my_minor(inode->i_rdev); -@@ -595,7 +601,11 @@ struct file_operations svgalib_helper_fo +@@ -595,7 +602,11 @@ struct file_operations svgalib_helper_fo #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,3,0) .owner = THIS_MODULE, #endif |