aboutsummaryrefslogtreecommitdiff
path: root/drivers/uwb
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/uwb')
-rw-r--r--drivers/uwb/est.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/uwb/est.c b/drivers/uwb/est.c
index 1667afb704d..3791cd95b63 100644
--- a/drivers/uwb/est.c
+++ b/drivers/uwb/est.c
@@ -395,7 +395,7 @@ ssize_t uwb_est_get_size(struct uwb_rc *uwb_rc, struct uwb_est *est,
case UWB_EST_8: type_size = sizeof(u8); break;
default: BUG();
}
- if (offset + type_size >= rceb_size) {
+ if (offset + type_size > rceb_size) {
if (printk_ratelimit())
dev_err(dev, "EST %p 0x%04x/%04x/%04x[%u]: "
"not enough data to read extra size\n",