rpms/kernel/FC-5 linux-2.6-softcursor-persistent-alloc.patch, 1.1, 1.2
fedora-cvs-commits at redhat.com
fedora-cvs-commits at redhat.com
Wed Aug 2 21:00:21 UTC 2006
- Previous message (by thread): rpms/libdhcp/devel .cvsignore, 1.11, 1.12 libdhcp.spec, 1.30, 1.31 sources, 1.23, 1.24
- Next message (by thread): rpms/libselinux/devel .cvsignore, 1.113, 1.114 libselinux.spec, 1.214, 1.215 sources, 1.115, 1.116
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: davej
Update of /cvs/dist/rpms/kernel/FC-5
In directory cvs.devel.redhat.com:/tmp/cvs-serv16495
Modified Files:
linux-2.6-softcursor-persistent-alloc.patch
Log Message:
update
linux-2.6-softcursor-persistent-alloc.patch:
softcursor.c | 19 ++++++++++++++-----
1 files changed, 14 insertions(+), 5 deletions(-)
Index: linux-2.6-softcursor-persistent-alloc.patch
===================================================================
RCS file: /cvs/dist/rpms/kernel/FC-5/linux-2.6-softcursor-persistent-alloc.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- linux-2.6-softcursor-persistent-alloc.patch 28 Dec 2005 23:48:23 -0000 1.1
+++ linux-2.6-softcursor-persistent-alloc.patch 2 Aug 2006 21:00:02 -0000 1.2
@@ -7,11 +7,11 @@
- u8 *dst, *src;
+ u8 *dst;
+ static u8 *src=NULL;
-+ static int allocsize=0;
++ static int allocsize = 0;
if (info->state != FBINFO_STATE_RUNNING)
return 0;
-@@ -31,9 +33,15 @@ int soft_cursor(struct fb_info *info, st
+@@ -31,9 +33,17 @@ int soft_cursor(struct fb_info *info, st
s_pitch = (cursor->image.width + 7) >> 3;
dsize = s_pitch * cursor->image.height;
@@ -24,8 +24,10 @@
+ allocsize = dsize + sizeof(struct fb_image);
+
+ src = kmalloc(allocsize, GFP_ATOMIC);
-+ if (!src)
++ if (!src) {
++ allocsize = 0;
+ return -ENOMEM;
++ }
+ }
image = (struct fb_image *) (src + dsize);
- Previous message (by thread): rpms/libdhcp/devel .cvsignore, 1.11, 1.12 libdhcp.spec, 1.30, 1.31 sources, 1.23, 1.24
- Next message (by thread): rpms/libselinux/devel .cvsignore, 1.113, 1.114 libselinux.spec, 1.214, 1.215 sources, 1.115, 1.116
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-cvs-commits
mailing list