Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-6]: src/sys/dev/ic Pullup rev. 1.74 via patch (requested by yam...



details:   https://anonhg.NetBSD.org/src/rev/3e6dab4ccadc
branches:  netbsd-1-6
changeset: 530331:3e6dab4ccadc
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Tue Jun 17 10:41:21 2003 +0000

description:
Pullup rev. 1.74 via patch (requested by yamt in ticket #1296):
 Fix of possible null pointer dereferences.

diffstat:

 sys/dev/ic/i82557.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 1557e01ea65f -r 3e6dab4ccadc sys/dev/ic/i82557.c
--- a/sys/dev/ic/i82557.c       Tue Jun 17 10:07:30 2003 +0000
+++ b/sys/dev/ic/i82557.c       Tue Jun 17 10:41:21 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: i82557.c,v 1.65.2.1 2002/06/10 16:07:11 tv Exp $       */
+/*     $NetBSD: i82557.c,v 1.65.2.2 2003/06/17 10:41:21 msaitoh Exp $  */
 
 /*-
  * Copyright (c) 1997, 1998, 1999, 2001, 2002 The NetBSD Foundation, Inc.
@@ -73,7 +73,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i82557.c,v 1.65.2.1 2002/06/10 16:07:11 tv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i82557.c,v 1.65.2.2 2003/06/17 10:41:21 msaitoh Exp $");
 
 #include "bpfilter.h"
 #include "rnd.h"
@@ -1195,7 +1195,7 @@
                 */
                if (fxp_copy_small != 0 && len <= MHLEN) {
                        MGETHDR(m0, M_DONTWAIT, MT_DATA);
-                       if (m == NULL)
+                       if (m0 == NULL)
                                goto dropit;
                        memcpy(mtod(m0, caddr_t),
                            mtod(m, caddr_t), len);



Home | Main Index | Thread Index | Old Index