Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Apr 2012 20:50:15 GMT
From:      dfilter@FreeBSD.ORG (dfilter service)
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/25733: commit references a PR
Message-ID:  <201204082050.q38KoFRt009313@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/25733; it has been noted by GNATS.

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/25733: commit references a PR
Date: Sun,  8 Apr 2012 20:48:48 +0000 (UTC)

 Author: avg
 Date: Sun Apr  8 20:48:39 2012
 New Revision: 234043
 URL: http://svn.freebsd.org/changeset/base/234043
 
 Log:
   intpm: return only SMB bus error codes from SMB methods
   
   PR:		kern/25733
   MFC after:	5 days
 
 Modified:
   head/sys/pci/intpm.c
 
 Modified: head/sys/pci/intpm.c
 ==============================================================================
 --- head/sys/pci/intpm.c	Sun Apr  8 20:44:57 2012	(r234042)
 +++ head/sys/pci/intpm.c	Sun Apr  8 20:48:39 2012	(r234043)
 @@ -272,7 +272,7 @@ intsmb_callback(device_t dev, int index,
  	case SMB_RELEASE_BUS:
  		break;
  	default:
 -		error = EINVAL;
 +		error = SMB_EINVAL;
  	}
  
  	return (error);
 @@ -519,7 +519,7 @@ intsmb_quick(device_t dev, u_char slave,
  		data |= LSB;
  		break;
  	default:
 -		return (EINVAL);
 +		return (SMB_EINVAL);
  	}
  
  	INTSMB_LOCK(sc);
 @@ -774,7 +774,7 @@ intsmb_bread(device_t dev, u_char slave,
  			}
  			*count = nread;
  		} else
 -			error = EIO;
 +			error = SMB_EBUSERR;
  	}
  	INTSMB_UNLOCK(sc);
  	return (error);
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201204082050.q38KoFRt009313>