Re: [v4l-dvb-maintainer] Re: dvb shared datastructure bug?

2007-02-13 Thread Manu Abraham
On 2/13/07, Trent Piepho <[EMAIL PROTECTED]> wrote: On Tue, 13 Feb 2007, Jakub Jelinek wrote: > Wouldn't it be better to kmalloc both struct dvb_device and > struct file_operations together instead of doing 2 separate allocations? > struct dvd_device_plus_fops > { > struct dvb_device dev; >

Re: [v4l-dvb-maintainer] Re: dvb shared datastructure bug?

2007-02-13 Thread Marcel Siegert
On Tuesday 13 February 2007, Trent Piepho wrote: > On Tue, 13 Feb 2007, Jakub Jelinek wrote: > > Wouldn't it be better to kmalloc both struct dvb_device and > > struct file_operations together instead of doing 2 separate allocations? > > struct dvd_device_plus_fops > > { > > struct dvb_device

Re: [v4l-dvb-maintainer] Re: dvb shared datastructure bug?

2007-02-13 Thread Trent Piepho
On Tue, 13 Feb 2007, Jakub Jelinek wrote: > Wouldn't it be better to kmalloc both struct dvb_device and > struct file_operations together instead of doing 2 separate allocations? > struct dvd_device_plus_fops > { > struct dvb_device dev; > struct file_operations fops; > } *dev_fops = kmalloc

Re: dvb shared datastructure bug?

2007-02-13 Thread Marcel Siegert
On Tuesday 13 February 2007, you wrote: > > > attached find a patch that fixes the problem. > > > Hi, > > Thank you for the quick response. > I think there is a small bug in this; at least I don't see where you > copy over the content of the fops template to the newly allocated piece > of

Re: dvb shared datastructure bug?

2007-02-13 Thread Marcel Siegert
On Tuesday 13 February 2007, Jakub Jelinek wrote: > On Tue, Feb 13, 2007 at 03:14:23PM +0400, Manu Abraham wrote: > > >thanks for pointing out this issue. > > > > > >attached find a patch that fixes the problem. > > > > > >@mauro - please pull changeset a7ac92d208fe > > > dvbdev: fix illegal

Re: dvb shared datastructure bug?

2007-02-13 Thread Jakub Jelinek
On Tue, Feb 13, 2007 at 03:14:23PM +0400, Manu Abraham wrote: > >thanks for pointing out this issue. > > > >attached find a patch that fixes the problem. > > > >@mauro - please pull changeset a7ac92d208fe > > dvbdev: fix illegal re-usage of fileoperations struct > > > >from

Re: dvb shared datastructure bug?

2007-02-13 Thread Arjan van de Ven
> attached find a patch that fixes the problem. Hi, Thank you for the quick response. I think there is a small bug in this; at least I don't see where you copy over the content of the fops template to the newly allocated piece of memory... Greetings, Arjan van de Ven -- if you want to

Re: dvb shared datastructure bug?

2007-02-13 Thread Marcel Siegert
On Tuesday 13 February 2007, Arjan van de Ven wrote: > Hi, > > while working on the last pieces of the file_ops constantification, DVB > is the small village in France that is holding the Romans at bay... but > I think I found the final flaw in it now: > >*pdvbdev = dvbdev =

Re: dvb shared datastructure bug?

2007-02-13 Thread Manu Abraham
On 2/13/07, Marcel Siegert <[EMAIL PROTECTED]> wrote: On Tuesday 13 February 2007, Arjan van de Ven wrote: > Hi, > > while working on the last pieces of the file_ops constantification, DVB > is the small village in France that is holding the Romans at bay... but > I think I found the final flaw

Re: [v4l-dvb-maintainer] dvb shared datastructure bug?

2007-02-13 Thread Manu Abraham
On 2/13/07, Arjan van de Ven <[EMAIL PROTECTED]> wrote: Hi, while working on the last pieces of the file_ops constantification, DVB is the small village in France that is holding the Romans at bay... but I think I found the final flaw in it now: *pdvbdev = dvbdev = kmalloc(sizeof(struct

Re: [v4l-dvb-maintainer] dvb shared datastructure bug?

2007-02-13 Thread Manu Abraham
On 2/13/07, Arjan van de Ven [EMAIL PROTECTED] wrote: Hi, while working on the last pieces of the file_ops constantification, DVB is the small village in France that is holding the Romans at bay... but I think I found the final flaw in it now: *pdvbdev = dvbdev = kmalloc(sizeof(struct

Re: dvb shared datastructure bug?

2007-02-13 Thread Manu Abraham
On 2/13/07, Marcel Siegert [EMAIL PROTECTED] wrote: On Tuesday 13 February 2007, Arjan van de Ven wrote: Hi, while working on the last pieces of the file_ops constantification, DVB is the small village in France that is holding the Romans at bay... but I think I found the final flaw in it

Re: dvb shared datastructure bug?

2007-02-13 Thread Marcel Siegert
On Tuesday 13 February 2007, Arjan van de Ven wrote: Hi, while working on the last pieces of the file_ops constantification, DVB is the small village in France that is holding the Romans at bay... but I think I found the final flaw in it now: *pdvbdev = dvbdev =

Re: dvb shared datastructure bug?

2007-02-13 Thread Arjan van de Ven
attached find a patch that fixes the problem. Hi, Thank you for the quick response. I think there is a small bug in this; at least I don't see where you copy over the content of the fops template to the newly allocated piece of memory... Greetings, Arjan van de Ven -- if you want to mail

Re: dvb shared datastructure bug?

2007-02-13 Thread Jakub Jelinek
On Tue, Feb 13, 2007 at 03:14:23PM +0400, Manu Abraham wrote: thanks for pointing out this issue. attached find a patch that fixes the problem. @mauro - please pull changeset a7ac92d208fe dvbdev: fix illegal re-usage of fileoperations struct from

Re: dvb shared datastructure bug?

2007-02-13 Thread Marcel Siegert
On Tuesday 13 February 2007, Jakub Jelinek wrote: On Tue, Feb 13, 2007 at 03:14:23PM +0400, Manu Abraham wrote: thanks for pointing out this issue. attached find a patch that fixes the problem. @mauro - please pull changeset a7ac92d208fe dvbdev: fix illegal re-usage of

Re: dvb shared datastructure bug?

2007-02-13 Thread Marcel Siegert
On Tuesday 13 February 2007, you wrote: attached find a patch that fixes the problem. Hi, Thank you for the quick response. I think there is a small bug in this; at least I don't see where you copy over the content of the fops template to the newly allocated piece of memory...

Re: [v4l-dvb-maintainer] Re: dvb shared datastructure bug?

2007-02-13 Thread Trent Piepho
On Tue, 13 Feb 2007, Jakub Jelinek wrote: Wouldn't it be better to kmalloc both struct dvb_device and struct file_operations together instead of doing 2 separate allocations? struct dvd_device_plus_fops { struct dvb_device dev; struct file_operations fops; } *dev_fops = kmalloc (sizeof

Re: [v4l-dvb-maintainer] Re: dvb shared datastructure bug?

2007-02-13 Thread Marcel Siegert
On Tuesday 13 February 2007, Trent Piepho wrote: On Tue, 13 Feb 2007, Jakub Jelinek wrote: Wouldn't it be better to kmalloc both struct dvb_device and struct file_operations together instead of doing 2 separate allocations? struct dvd_device_plus_fops { struct dvb_device dev;

Re: [v4l-dvb-maintainer] Re: dvb shared datastructure bug?

2007-02-13 Thread Manu Abraham
On 2/13/07, Trent Piepho [EMAIL PROTECTED] wrote: On Tue, 13 Feb 2007, Jakub Jelinek wrote: Wouldn't it be better to kmalloc both struct dvb_device and struct file_operations together instead of doing 2 separate allocations? struct dvd_device_plus_fops { struct dvb_device dev; struct

dvb shared datastructure bug?

2007-02-12 Thread Arjan van de Ven
Hi, while working on the last pieces of the file_ops constantification, DVB is the small village in France that is holding the Romans at bay... but I think I found the final flaw in it now: *pdvbdev = dvbdev = kmalloc(sizeof(struct dvb_device), GFP_KERNEL); if (!dvbdev) {

dvb shared datastructure bug?

2007-02-12 Thread Arjan van de Ven
Hi, while working on the last pieces of the file_ops constantification, DVB is the small village in France that is holding the Romans at bay... but I think I found the final flaw in it now: *pdvbdev = dvbdev = kmalloc(sizeof(struct dvb_device), GFP_KERNEL); if (!dvbdev) {