Hi, On Wednesday 09 January 2013 23:48:42 Giuseppe D'Angelo wrote: > On 9 January 2013 23:32, Thomas Petazzoni > <thomas.petazz...@free-electrons.com> wrote: > > The switchToGraphicsMode() function calls the KDGETMODE ioctl() call, > > but passes the address of oldMode, which is already a > > pointer. Therefore, the current code makes the kernel write the "mode" > > value returned by the KDGETMODE ioctl() at the address of the oldMode > > pointer. This pointer becomes NULL, which makes the following line > > trigger a segfault. > > > > Since the function already receives as argument the address of > > oldMode, there is no need to do &oldMode when doing the ioctl() call. > > > This patch fixes the following segfault: > Thanks for the fix, but although it's trifial, for legal reasons the > Qt Project can't accept patches from the mailing list (or the > bugtracker). Please consider spending 5 minutes to set up Gerrit and > pushing this fix:
How about reviewing and accepting one from someone who already accepted the Agreement: https://codereview.qt-project.org/#change,39400 It's identical to Thomas' code. Konrad
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest