diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2008-04-18 17:59:38 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2008-04-18 17:59:38 +0000 |
commit | 72423df36e2773cb2a116376d43e807f02fffb6d (patch) | |
tree | c8b99243ec26d84dd2d1daa9fad1799452bba061 /sys/arch/macppc/dev | |
parent | 995cc445b382e9f2a6411e86389478c2b49c9724 (diff) |
if an iic operation fails to move all the data, return error
ok kettenis
Diffstat (limited to 'sys/arch/macppc/dev')
-rw-r--r-- | sys/arch/macppc/dev/kiic.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/macppc/dev/kiic.c b/sys/arch/macppc/dev/kiic.c index 7e831374a4b..5a1a0307ceb 100644 --- a/sys/arch/macppc/dev/kiic.c +++ b/sys/arch/macppc/dev/kiic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kiic.c,v 1.2 2007/05/20 23:38:52 thib Exp $ */ +/* $OpenBSD: kiic.c,v 1.3 2008/04/18 17:59:37 deraadt Exp $ */ /* $NetBSD: kiic.c,v 1.1 2003/12/27 02:19:34 grant Exp $ */ /*- @@ -332,6 +332,8 @@ kiic_start(struct kiic_softc *sc, int addr, int subaddr, void *data, int len) printf("I2C_ERROR\n"); return (-1); } + if (sc->sc_resid != 0) + return (-1); return (0); } |