Skip to content

Commit

Permalink
HBSD: Prevent negative array indexing
Browse files Browse the repository at this point in the history
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=206754

Signed-off-by: CTurt <ecturt@gmail.com>
  • Loading branch information
CTurt committed Jan 30, 2016
1 parent 2a89bd9 commit 4cf6de4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sys/dev/iicbus/iic.c
Expand Up @@ -293,7 +293,8 @@ iicrdwr(struct iic_cdevpriv *priv, struct iic_rdwr_data *d, int flags)
struct iic_msg *buf, *m;
void **usrbufs;
device_t iicdev, parent;
int error, i;
int error;
uint32_t i;

iicdev = priv->sc->sc_dev;
parent = device_get_parent(iicdev);
Expand Down

0 comments on commit 4cf6de4

Please sign in to comment.