diff options
author | Martin Peschke <[email protected]> | 2009-01-30 15:46:23 +0100 |
---|---|---|
committer | James Bottomley <[email protected]> | 2009-02-10 11:15:17 -0500 |
commit | 76e3a19d0691bbfcc559ce77ab3004818fab8f22 (patch) | |
tree | 6013a3ec01ea3f269280740346b98875c35a5478 /net/lapb/lapb_in.c | |
parent | c2f9e49f9bbfa2e111ab1e1628b96b560bae7cec (diff) |
[SCSI] sg: fix device number in blktrace data
Hi,
we have run into an issue with blktrace being started for sg devices.
Please apply.
Thanks,
Martin
From: Martin Peschke <[email protected]>
The device number denoting a generic SCSI devices (sg) in a blktrace
trace is broken; major and minor are always 0. It looks like
sdp->device->sdev_gendev.devt is not initialized properly.
The fix below uses other data to make up a valid device number,
similar to the way an sg device number is generated for sysfs output.
Reported-by: Stefan Raspl <[email protected]>
Signed-off-by: Martin Peschke <[email protected]>
Acked-by: Douglas Gilbert <[email protected]>
Signed-off-by: James Bottomley <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions