Move malloc after ioctl, so we don't have to worry about free'ing the memory if the ioctl fails. [ This bug was found by the Parfait bug checking tool. For more information see http://research.sun.com/projects/parfait ] Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Mikhail Gusarov <dottedmag@dottedmag.net> |
||
|---|---|---|
| .. | ||
| Makefile.am | ||
| apSolaris.shar | ||
| solaris-amd64.S | ||
| solaris-ia32.S | ||
| solaris-sparcv8plus.S | ||
| sun_VTsw.c | ||
| sun_agp.c | ||
| sun_apm.c | ||
| sun_bell.c | ||
| sun_init.c | ||
| sun_inout.s | ||
| sun_vid.c | ||