+ deref-in-drivers-block-paride-pfc.patch added to -mm tree

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

 



The patch titled

     Deref in drivers/block/paride/pf.c

has been added to the -mm tree.  Its filename is

     deref-in-drivers-block-paride-pfc.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: Deref in drivers/block/paride/pf.c
From: Eric Sesterhenn <snakebyte@xxxxxx>

Another possible dereference detected by coverity (id #759).  pf_probe()
might call pf_identify() which might call get_capacity() which dereferences
pf->disk

Signed-off-by: Eric Sesterhenn <snakebyte@xxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 drivers/block/paride/pf.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN drivers/block/paride/pf.c~deref-in-drivers-block-paride-pfc drivers/block/paride/pf.c
--- a/drivers/block/paride/pf.c~deref-in-drivers-block-paride-pfc
+++ a/drivers/block/paride/pf.c
@@ -707,7 +707,7 @@ static int pf_detect(void)
 			if (pi_init(pf->pi, 0, conf[D_PRT], conf[D_MOD],
 				    conf[D_UNI], conf[D_PRO], conf[D_DLY],
 				    pf_scratch, PI_PF, verbose, pf->name)) {
-				if (!pf_probe(pf) && pf->disk) {
+				if (pf->disk && !pf_probe(pf)) {
 					pf->present = 1;
 					k++;
 				} else
_

Patches currently in -mm which might be from snakebyte@xxxxxx are

origin.patch
git-gfs2.patch
typo-in-drivers-net-e1000-e1000_hwc.patch
git-wireless.patch
deref-in-drivers-block-paride-pfc.patch
skb-leak-in-drivers-isdn-i4l-isdn_x25ifacec.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux