Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ivtv: devel
cx18: [PATCH] fix bounds check in cx18_stream_alloc()
 

Index | Next | Previous | View Flat


cwalls at radix

Mar 7, 2008, 8:11 PM


Views: 953
Permalink
cx18: [PATCH] fix bounds check in cx18_stream_alloc()

In cx18_stream_alloc(), s->mdl_offset was being used
uninitialized/memset to 0 in the call to cx18_stream_alloc(), for every
stream, to do a bounds check on accumulated allocations. This appears
to be incorrect.

I believe the intent was to use the current running total in
cx->mdl_offset to perform the bounds check.

Please inspect the attached patch to make sure it makes sense. I'm not
100% sure of my current understanding of the mdl_offset variables.

Regards,
Andy
Attachments: cx18-stream_alloc-check.patch (0.77 KB)

Subject User Time
cx18: [PATCH] fix bounds check in cx18_stream_alloc() cwalls at radix Mar 7, 2008, 8:11 PM
    Re: cx18: [PATCH] fix bounds check in cx18_stream_alloc() hverkuil at xs4all Mar 8, 2008, 3:05 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.