Subject: port-sun3/1049: Sun 3 ee_update() returns random garbage.
To: None <gnats-admin@sun-lamp.cs.berkeley.edu>
From: Jason R. Thorpe <thorpej@SJ.Xenotropic.COM>
List: netbsd-bugs
Date: 05/14/1995 20:05:05
>Number:         1049
>Category:       port-sun3
>Synopsis:       Sun 3 ee_update() returns random garbage.
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun May 14 20:05:01 1995
>Originator:     
>Organization:
Just me.
>Release:        -current of May 4 1995
>Environment:
	
System: NetBSD ovation 1.0A NetBSD 1.0A (OVATION) #26: Mon May 8 23:47:14 PDT 1995 root@ovation:/tmp_mnt/basalt/usr/work-current/netbsd/src/sys/arch/sun3/compile/OVATION sun3


>Description:
	ee_update() fails to return a sane value upon successful completion.
>How-To-Repeat:
	Try to update the eeprom.  I was testing my own eeprom(8), but
	I'd imagine that the SunOS eeprom(8s) would fail as well.
>Fix:
	Apply this patch to arch/sun3/dev/eeprom.c

*** eeprom.c.orig	Sun May 14 19:52:58 1995
--- eeprom.c	Sun May 14 19:53:03 1995
***************
*** 206,211 ****
--- 206,212 ----
  		bp++;
  		cnt--;
  	}
+ 	return (0);
  }
  
  /*
>Audit-Trail:
>Unformatted: