Add missing parenthesis around error handling code upon attaching

mlx devices. This fixes an issue where mlx device drives fail to be
detected at system boot.

This is a RELENG_6 candidate.

Submitted by:	oliver
PR:		kern/84163
This commit is contained in:
Christian S.J. Peron 2005-07-30 15:53:40 +00:00
parent acc79971c2
commit 648fd2bd0b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=148570

View File

@ -212,9 +212,10 @@ mlx_pci_attach(device_t dev)
* Do bus-independant initialisation.
*/
error = mlx_attach(sc);
if (error != 0)
if (error != 0) {
mlx_free(sc);
return(error);
}
/*
* Start the controller.