Fix some uses of uninitialized variables.

This commit is contained in:
Kees van Reeuwijk
2010-02-19 10:41:02 +00:00
parent 1597e701a0
commit 1ba0936619
5 changed files with 8 additions and 5 deletions

View File

@@ -1402,6 +1402,9 @@ static void or_writev (message * mp, int from_int, int vectored) {
assert (orp->or_mode == OR_M_ENABLED);
assert (orp->or_flags & OR_F_ENABLED);
/* CvR: copied from or_writev_s(), since txfid was not initialized. */
txfid = orp->or_tx.or_txfid;
if (vectored) {
int iov_offset = 0;

View File

@@ -720,7 +720,7 @@ re_t *rep;
#define BUF_ALIGNMENT (64*1024)
if(!(mallocbuf = alloc_contig(BUF_ALIGNMENT + tot_bufsize, 0, &buf))) {
panic("RTL8139","Couldn't allocate kernel buffer",i);
panic("RTL8139","Couldn't allocate kernel buffer",NO_NUM);
}
/* click-align mallocced buffer. this is what we used to get