[PATCH] KDrive: Fix error handlig in tslib driver

Keith Packard keith.packard at intel.com
Tue Oct 19 07:53:12 PDT 2010


On Sun, 17 Oct 2010 14:02:01 -0700, Paulius Zaleckas <paulius.zaleckas at gmail.com> wrote:
> If ts_open() fails and return NULL, then next call to ts_fd()
> segfaults because of NULL dereference. There is no need to
> check output of ts_fd() as ts_open() did this internally.
> 
> Signed-off-by: Paulius Zaleckas <paulius.zaleckas at gmail.com>

Reviewed-by: Keith Packard <keithp at keithp.com>

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20101019/11f4b711/attachment.pgp>


More information about the xorg-devel mailing list