+ dvb-usb-fix-crash-in-drivers-media-dvb-dvb-usb-cxusbc.patch added to -mm tree

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

 



The patch titled
     dvb-usb: fix crash in drivers/media/dvb/dvb-usb/cxusb.c
has been added to the -mm tree.  Its filename is
     dvb-usb-fix-crash-in-drivers-media-dvb-dvb-usb-cxusbc.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

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

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: dvb-usb: fix crash in drivers/media/dvb/dvb-usb/cxusb.c
From: "Robert Lowery" <rglowery@xxxxxxxxxxxxxx>

fe->dvb->priv is a dvb_usb_adapter, but the callback is expecting a
dvb_usb_device.  I'm not sure the best way to handle this as
tuner-xc2028.c does not know about any dvb-usb code currently.

In any case, the following patch seems to get it past the oops until the
proper fix is in place.

Chris Pascoe <c.pascoe@xxxxxxxxxxxxxx>
Mauro Carvalho Chehab <mchehab@xxxxxxxxxxxxx>
Cc: <stable@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 drivers/media/dvb/dvb-usb/cxusb.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN drivers/media/dvb/dvb-usb/cxusb.c~dvb-usb-fix-crash-in-drivers-media-dvb-dvb-usb-cxusbc drivers/media/dvb/dvb-usb/cxusb.c
--- a/drivers/media/dvb/dvb-usb/cxusb.c~dvb-usb-fix-crash-in-drivers-media-dvb-dvb-usb-cxusbc
+++ a/drivers/media/dvb/dvb-usb/cxusb.c
@@ -565,7 +565,7 @@ static int cxusb_lgh064f_tuner_attach(st
 
 static int dvico_bluebird_xc2028_callback(void *ptr, int command, int arg)
 {
-	struct dvb_usb_device *d = ptr;
+	struct dvb_usb_device *d = ((struct dvb_usb_adapter *)ptr)->dev;
 
 	switch (command) {
 	case XC2028_TUNER_RESET:
_

Patches currently in -mm which might be from rglowery@xxxxxxxxxxxxxx are

dvb-usb-fix-crash-in-drivers-media-dvb-dvb-usb-cxusbc.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