[haiku-commits] Re: haiku: hrev47761 - src/add-ons/kernel/drivers/ports/pc_serial

  • From: Jérôme Duval <jerome.duval@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 29 Aug 2014 16:50:57 +0200

2014-08-29 12:32 GMT+02:00  <revol@xxxxxxx>:
> +               device = new(std::nothrow) SerialDevice(&sSupportedDevices[0],
> +                       sHardcodedPorts[i].ioBase, sHardcodedPorts[i].irq);
> +               if (device && device->Probe())

You should check against NULL.

> +       handle = load_driver_settings("kernel");

You should check handle against NULL;



Bye,
Jérôme

Other related posts: