summaryrefslogtreecommitdiff
path: root/drivers/staging/ethosu/ethosu_network_info.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/staging/ethosu/ethosu_network_info.c')
-rw-r--r--drivers/staging/ethosu/ethosu_network_info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/ethosu/ethosu_network_info.c b/drivers/staging/ethosu/ethosu_network_info.c
index 5584666071b0..3b8ad935505a 100644
--- a/drivers/staging/ethosu/ethosu_network_info.c
+++ b/drivers/staging/ethosu/ethosu_network_info.c
@@ -147,7 +147,7 @@ void ethosu_network_info_rsp(struct ethosu_device *edev,
goto signal_complete;
}
- if (rsp->ifm_count > ETHOSU_FD_MAX || rsp->ofm_count > ETHOSU_FD_MAX) {
+ if (rsp->ifm_count > ETHOSU_CORE_BUFFER_MAX || rsp->ofm_count > ETHOSU_CORE_BUFFER_MAX) {
info->errno = -ENFILE;
goto signal_complete;
}