[PATCH] vga16fb.c, length should be 65536

Tobias Diedrich (ranma@gmx.at)
Wed, 29 Aug 2001 12:44:03 +0200


Martin Mares agreed too, so I'm forwarding this :-)
Please apply

----- Forwarded message from Tobias Diedrich <ranma@gmx.at> -----

Message-ID: <20010829011707.A1984@router.ranmachan.dyndns.org>
User-Agent: Mutt/1.3.20i
Date: Wed, 29 Aug 2001 01:17:07 +0200
From: Tobias Diedrich <ranma@gmx.at>
To: Martin Mares <mj@suse.cz>
Cc: linux-video@atrey.karlin.mff.cuni.cz
Subject: [PATCH] vga16fb.c, length should be 65536
Content-Type: text/plain; charset=us-ascii

I noticed that the vga16 framebuffer driver returns a smem_len of
65535. Shouldn't that be 65536 ? (Realmode Segment A000-AFFF)

I already wrote about this to Ben Pfaff <pfaffen@msu.edu>, who is listed
at the top of this file, some time ago, to which he ansered
"I think you're right.".

I recently looked at the source of a newer tree again to check wether he
did forward it, but appearently he did not. After looking at the
MAINTAINERS File again I found you being listed for "SVGA HANDLING",
so I'm sending this to you.

Should I forward this to Linus & linux-kernel ?

--- linux-2.4.8-ac11/drivers/video/vga16fb.c.orig Wed Aug 29 01:04:04 2001
+++ linux-2.4.8-ac11/drivers/video/vga16fb.c Wed Aug 29 01:04:12 2001
@@ -33,7 +33,7 @@
#define dac_val (0x3c9)

#define VGA_FB_PHYS 0xA0000
-#define VGA_FB_PHYS_LEN 65535
+#define VGA_FB_PHYS_LEN 65536

/* --------------------------------------------------------------------- */

-- 
Tobias							     PGP-Key: 0x9AC7E0BC
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/