linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* write() to zero length framebuffer -- bug report
@ 2005-12-13 14:33 Jenkins, Clive
  2005-12-13 15:36 ` Antonino A. Daplas
  0 siblings, 1 reply; 2+ messages in thread
From: Jenkins, Clive @ 2005-12-13 14:33 UTC (permalink / raw)
  To: linux-fbdev-devel

In the vanilla 2.4.20 kernel version of fbmem.c, the function
fb_write() returns zero if the framebuffer size (fix.smem_size)
is zero, instead of -ENOSPC. This causes a normal user program
to loop forever.

Looking at the code for vanilla 2.6.10 and 2.6.11, the situation
is complicated by the new info.screen_size and kmalloc-ing a
buffer, but the bug is still there.

Clive


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id\x16865&op=click

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: write() to zero length framebuffer -- bug report
  2005-12-13 14:33 write() to zero length framebuffer -- bug report Jenkins, Clive
@ 2005-12-13 15:36 ` Antonino A. Daplas
  0 siblings, 0 replies; 2+ messages in thread
From: Antonino A. Daplas @ 2005-12-13 15:36 UTC (permalink / raw)
  To: linux-fbdev-devel; +Cc: Jenkins, Clive

Jenkins, Clive wrote:
> In the vanilla 2.4.20 kernel version of fbmem.c, the function
> fb_write() returns zero if the framebuffer size (fix.smem_size)
> is zero, instead of -ENOSPC. This causes a normal user program
> to loop forever.
> 
> Looking at the code for vanilla 2.6.10 and 2.6.11, the situation
> is complicated by the new info.screen_size and kmalloc-ing a
> buffer, but the bug is still there.

Thank you. Will fix.

Tony


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-12-13 15:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-13 14:33 write() to zero length framebuffer -- bug report Jenkins, Clive
2005-12-13 15:36 ` Antonino A. Daplas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).