diff options
| author | Ed Maste <emaste@FreeBSD.org> | 2019-07-03 17:34:26 +0000 |
|---|---|---|
| committer | Ed Maste <emaste@FreeBSD.org> | 2019-07-03 17:34:26 +0000 |
| commit | f8db2270e63548d12414e05e3d0527873ea1e759 (patch) | |
| tree | 8b22035baf761c1c1ea90f2b8d205ab05c99b177 /sys/dev/nand | |
| parent | 440cb60cdc08b41f8d54fb7f6c15d1ddd01e5c7f (diff) | |
Notes
Diffstat (limited to 'sys/dev/nand')
| -rw-r--r-- | sys/dev/nand/nandsim.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/nand/nandsim.c b/sys/dev/nand/nandsim.c index 4639a15700a2..50e4f8bb2e33 100644 --- a/sys/dev/nand/nandsim.c +++ b/sys/dev/nand/nandsim.c @@ -295,7 +295,7 @@ nandsim_chip_status(struct sim_chip *chip) nand_debug(NDBG_SIM,"status for chip num:%d at ctrl:%d", chip->num, chip->ctrl_num); - if (chip->ctrl_num >= MAX_SIM_DEV && + if (chip->ctrl_num >= MAX_SIM_DEV || chip->num >= MAX_CTRL_CS) return (EINVAL); |
