FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Kernel

LinkBack Thread Tools
Old 08-01-2010, 01:11 AM
David Brodrick
Default Bug#583731: Bug Traced to Application Code

I traced the change of behaviour when changing kernel versions to a
problem in the application itself.

One of the usb_control_msg calls was being made with data that the
device did not understand, and so the device was not responding and
usb_interrupt_read was returning an error status that the developer (not
me :-) never checked.

It is kind of amazing it ever worked, but the response buffer contained
valid data from a previous usb call, however the patches to the kernel
changed the contents of the buffer which 'broke' the broken application.

I updated the application code to fix the arguments to the
usb_control_msg call so that device responded correctly and to check the
return status of all of the usb calls and the application has now been
verified to work properly on 2.6.26-21lenny4, 2.6.26-22lenny1, 2.6.32-5,
2.6.32-trunk and a 2.6.34 kernel.

Apologies for not having a much deeper dig into this at the start.

To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4C54C9C7.2060901@ozforecast.com.au">http://lists.debian.org/4C54C9C7.2060901@ozforecast.com.au

Thread Tools

All times are GMT. The time now is 12:57 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org