#1 patch for bug 580740

v0.1.0
closed
5
2015-01-27
2002-07-16
No

Patch fixes problem reported in bug 580740. Diagnostic
manager - crmdiags - must return device private data
registered with diagnostics.

Apply patch to kernel already patched with the
crms-0.1.0_kernel-2.4.18.patch patch. This is for the
2.4.18 kernel only.

Index: linux-diag/drivers/crms/crmdiags/rundiags.c
diff -u linux-diag/drivers/crms/crmdiags/rundiags.c:1.1.2.5
linux-diag/drivers/crms/crmdiags/rundiags.c:1.1.2.5.2.1
--- linux-diag/drivers/crms/crmdiags/rundiags.c:1.1.2.5 Fri
Jun 28 07:45:11 2002+++
linux-diag/drivers/crms/crmdiags/rundiags.c Tue Jul 16
13:11:05 2002
@@ -159,7 +159,11 @@

ret = parse_command(subsys, buf, size);
if (ret == 0) {
- ret = subsys->diags->run(NULL,
subsys->args_sz, subsys->args,
+ struct diag_resource *rsrc = NULL;
+
+ rsrc = find_resource(subsys,
entry->rsrc_name);
+ ret = subsys->diags->run(rsrc ?
rsrc->private_data : NULL,
+ subsys->args_sz, subsys->args,
&subsys->result, subsys->test_id);
if (ret == 0) {
subsys->state = DONE;

Discussion

  • Vasant Hegde

    Vasant Hegde - 2015-01-27
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,4 +1,3 @@
    -
     Patch fixes problem reported in bug 580740. Diagnostic 
     manager - crmdiags - must return device private data 
     registered with diagnostics. 
    
    • status: open --> closed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks