[media] media: Fix regression in some more dib0700 based devices
authorThomas Reitmayr <treitmayr@devbase.at>
Fri, 1 May 2015 23:18:04 +0000 (20:18 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 13 May 2015 21:18:39 +0000 (18:18 -0300)
Fix an oops during device initialization by correctly setting size_of_priv
instead of leaving it 0.
The regression was introduced by 8abe4a0a3f6d4217b16a ("[media] dib7000:
export just one symbol") and only fixed for one type of dib0700 based
devices in 9e334c75642b6e5bfb95 ("[media] Fix regression in some dib0700
based devices").

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=92301

Fixes: 8abe4a0a3f6d4217b16a ("[media] dib7000: export just one symbol")
Cc: stable@vger.kernel.org # for version 3.17+
Signed-off-by: Thomas Reitmayr <treitmayr@devbase.at>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/dvb-usb/dib0700_devices.c

index 90cee380d3aa2b7433196098d0974b18f5e42ce5..e87ce835dcbd4a66a7120034000f1ec882f528e8 100644 (file)
@@ -3944,6 +3944,8 @@ struct dvb_usb_device_properties dib0700_devices[] = {
 
                                DIB0700_DEFAULT_STREAMING_CONFIG(0x02),
                        }},
+                               .size_of_priv = sizeof(struct
+                                               dib0700_adapter_state),
                        }, {
                        .num_frontends = 1,
                        .fe = {{
@@ -3956,6 +3958,8 @@ struct dvb_usb_device_properties dib0700_devices[] = {
 
                                DIB0700_DEFAULT_STREAMING_CONFIG(0x03),
                        }},
+                               .size_of_priv = sizeof(struct
+                                               dib0700_adapter_state),
                        }
                },
 
@@ -4009,6 +4013,8 @@ struct dvb_usb_device_properties dib0700_devices[] = {
 
                                DIB0700_DEFAULT_STREAMING_CONFIG(0x02),
                        }},
+                               .size_of_priv = sizeof(struct
+                                               dib0700_adapter_state),
                        },
                },
 
This page took 0.045259 seconds and 5 git commands to generate.