MFC revision 1.24

date: 2005/07/30 15:53:40;  author: csjp;  state: Exp;  lines: +2 -1
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.

Approved by:	re@ (scottl)
This commit is contained in:
csjp 2005-07-31 00:41:53 +00:00
parent e1c2a59068
commit f087bcb30a

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.