Bug 244 - Possible uninitialised ptr scsi bug from Andy Chou <acc@cs.stanford.edu>
Summary: Possible uninitialised ptr scsi bug from Andy Chou <acc@cs.stanford.edu>
Status: CLOSED CODE_FIX
Alias: None
Product: SCSI Drivers
Classification: Unclassified
Component: Other (show other bugs)
Hardware: i386 Linux
: P2 low
Assignee: Mike Christie
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-03 16:27 UTC by Hanna Linder
Modified: 2005-07-05 11:54 UTC (History)
0 users

See Also:
Kernel Version:
Subsystem:
Regression: ---
Bisected commit-id:


Attachments

Description Hanna Linder 2003-01-03 16:27:22 UTC
Exact Kernel version: 2.5.48
Distribution: kernel.org
Hardware Environment: unknown
Software Environment: Stanford Checker
Problem Description:
See thread here: http://marc.theaimsgroup.com/?t=104155440600003&r=1&w=2
[BUG] In caller, err_out: is reached in cases where SRpnt is uninitialized.
/u1/acc/linux/2.5.48/drivers/scsi/scsi.c:341:scsi_release_request:
ERROR:BUFFER:341:341:Deref uninitialized pointer req [Callstack:
/u1/acc/linux/2.5.48/drivers/scsi/osst.c:4511:scsi_release_request(<len=0,
off=0>)] 
 *              has not yet reached the top of the queue.  We still need
 *              to free a request when we are done with it, of course.
 */
void scsi_release_request(Scsi_Request * req)
{

Error --->
	if( req->sr_command != NULL )
	{
		scsi_release_command(req->sr_command);
		req->sr_command = NULL;

Steps to reproduce:
Comment 1 Mike Christie 2003-09-29 15:37:01 UTC
fixed in 2.6.0-test6
Comment 2 Mike Christie 2003-09-29 15:37:19 UTC
fixed in 2.6.0-test6

Note You need to log in before you can comment on or make changes to this bug.