Hi Paul,
well spotted, I'll change that.
I hope there is no code out there that relies on this quirk.

About Bug tracking/Mantis:
yup, the link goes nowhere. afaik, it was not much used in the first place; and at the time, for a number of reasons, DirectFB changed server, I think this was one of the 'forgotten' projects. If enough requests are voiced it might be interesting to resurrect.

Greets
Niels

Paul Morton wrote:
Line 2720 contains:
     if (dfb_core_is_master( dfb_fbdev->core )) {
          fbdev_ioctl_call_handler( 1, request, arg, NULL, 0, &ret );
          return ret;
     }
I think this should instead be:
     if (dfb_core_is_master( dfb_fbdev->core )) {
          fbdev_ioctl_call_handler( 1, request, arg, NULL, 0, &ret );
          return ret ? -1 : 0;
     }
This bug results in a Framebuffer driver error code not being detected as an error by callers of FBDEV_IOCTL. For example, without the bug fix, the "if" statement below (from fbdev.c line 1875) is not entered: if (FBDEV_IOCTL( FBIOPUT_VSCREENINFO, &var ) < 0) {
          int erno = errno;
          dfb_gfxcard_unlock();
          D_DEBUG_AT( FBDev_Mode, "  => FAILED!\n" );
          return errno2result( erno );
     }
By the way, how do I access the directfb bug tracking system? The link to it on http://www.directfb.org/ go nowhere. ------------------------------------------------------------------------

_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev


--

.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/                 |
"------------------------------------------"
_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to