Fix some uses of uninitialized variables.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user