summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorcsjp <csjp@FreeBSD.org>2005-07-30 15:53:40 +0000
committercsjp <csjp@FreeBSD.org>2005-07-30 15:53:40 +0000
commitaa6ed9f702e89723e890a1b2ca19dc4875bd9c0e (patch)
treedaae863bd16790650f6c210669fece969fedfd6f /sys/dev
parent9ac3a9fcb9c8e7adc7985a08058ad7902fd7eea3 (diff)
downloadFreeBSD-src-aa6ed9f702e89723e890a1b2ca19dc4875bd9c0e.zip
FreeBSD-src-aa6ed9f702e89723e890a1b2ca19dc4875bd9c0e.tar.gz
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
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/mlx/mlx_pci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/mlx/mlx_pci.c b/sys/dev/mlx/mlx_pci.c
index 732fed8..b39a6b8 100644
--- a/sys/dev/mlx/mlx_pci.c
+++ b/sys/dev/mlx/mlx_pci.c
@@ -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.
OpenPOWER on IntegriCloud