mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patchset] Fix mishandling of error/exit patchs in 2.5
@ 2003-06-12  7:13 Ravikiran G Thirumalai
  2003-06-12  7:14 ` [patchset] Fix mishandling of error/exit patchs in 2.5 -- 1/3 dpt_i2o Ravikiran G Thirumalai
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Ravikiran G Thirumalai @ 2003-06-12  7:13 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel

Here's a patchset to fix error/exit paths in 2.5.  This is working off
Alan's list and are forward ports of 2.4 patches.  
Patches will follow for dpt_i2o, jffs, and es1371.

dpt_i2o patch is probably not maintained and doesn't compile with current bk
 -- but that is not because of this fix.  Other patches compile.

Thanks,
Kiran

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [patchset] Fix mishandling of error/exit patchs in 2.5 -- 1/3 dpt_i2o
  2003-06-12  7:13 [patchset] Fix mishandling of error/exit patchs in 2.5 Ravikiran G Thirumalai
@ 2003-06-12  7:14 ` Ravikiran G Thirumalai
  2003-06-12  7:26 ` [patchset] Fix mishandling of error/exit patchs in 2.5 --2/3; jffs Ravikiran G Thirumalai
  2003-06-12  7:27 ` [patchset] Fix mishandling of error/exit patchs in 2.5 --3/3 es1371 Ravikiran G Thirumalai
  2 siblings, 0 replies; 4+ messages in thread
From: Ravikiran G Thirumalai @ 2003-06-12  7:14 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel


--- linux-2.5.70-bk/drivers/scsi/dpt_i2o.c	2003-06-11 20:56:14.000000000 +0530
+++ bklatest/drivers/scsi/dpt_i2o.c	2003-06-11 21:37:28.000000000 +0530
@@ -2538,7 +2538,7 @@
 
 	if(pHba->initialized ) {
 		if (adpt_i2o_status_get(pHba) < 0) {
-			if((rcode = adpt_i2o_reset_hba(pHba) != 0)){
+			if((rcode = adpt_i2o_reset_hba(pHba)) != 0){
 				printk(KERN_WARNING"%s: Could NOT reset.\n", pHba->name);
 				return rcode;
 			}
@@ -2564,7 +2564,7 @@
 			}
 		}
 	} else {
-		if((rcode = adpt_i2o_reset_hba(pHba) != 0)){
+		if((rcode = adpt_i2o_reset_hba(pHba)) != 0){
 			printk(KERN_WARNING"%s: Could NOT reset.\n", pHba->name);
 			return rcode;
 		}

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [patchset] Fix mishandling of error/exit patchs in 2.5 --2/3; jffs
  2003-06-12  7:13 [patchset] Fix mishandling of error/exit patchs in 2.5 Ravikiran G Thirumalai
  2003-06-12  7:14 ` [patchset] Fix mishandling of error/exit patchs in 2.5 -- 1/3 dpt_i2o Ravikiran G Thirumalai
@ 2003-06-12  7:26 ` Ravikiran G Thirumalai
  2003-06-12  7:27 ` [patchset] Fix mishandling of error/exit patchs in 2.5 --3/3 es1371 Ravikiran G Thirumalai
  2 siblings, 0 replies; 4+ messages in thread
From: Ravikiran G Thirumalai @ 2003-06-12  7:26 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel


--- linux-2.5.70-bk/fs/jffs/intrep.c	2003-06-11 20:49:03.000000000 +0530
+++ bklatest/fs/jffs/intrep.c	2003-06-11 22:21:16.000000000 +0530
@@ -1908,7 +1908,7 @@
 	}
 
 	if ((err = flash_safe_writev(fmc->mtd, node_iovec, iovec_cnt,
-				    pos) < 0)) {
+				    pos)) < 0) {
 		jffs_fmfree_partly(fmc, fm, 0);
 		jffs_fm_write_unlock(fmc);
 		printk(KERN_ERR "JFFS: jffs_write_node: Failed to write, "

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [patchset] Fix mishandling of error/exit patchs in 2.5 --3/3 es1371
  2003-06-12  7:13 [patchset] Fix mishandling of error/exit patchs in 2.5 Ravikiran G Thirumalai
  2003-06-12  7:14 ` [patchset] Fix mishandling of error/exit patchs in 2.5 -- 1/3 dpt_i2o Ravikiran G Thirumalai
  2003-06-12  7:26 ` [patchset] Fix mishandling of error/exit patchs in 2.5 --2/3; jffs Ravikiran G Thirumalai
@ 2003-06-12  7:27 ` Ravikiran G Thirumalai
  2 siblings, 0 replies; 4+ messages in thread
From: Ravikiran G Thirumalai @ 2003-06-12  7:27 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel


--- linux-2.5.70-bk/sound/oss/es1371.c	2003-06-11 20:56:33.000000000 +0530
+++ bklatest/sound/oss/es1371.c	2003-06-11 23:13:06.000000000 +0530
@@ -2853,13 +2853,13 @@
 	printk(KERN_INFO PFX "found es1371 rev %d at io %#lx irq %u joystick %#x\n",
 	       s->rev, s->io, s->irq, s->gameport.io);
 	/* register devices */
-	if ((res=(s->dev_audio = register_sound_dsp(&es1371_audio_fops,-1))<0))
+	if ((res=(s->dev_audio = register_sound_dsp(&es1371_audio_fops,-1)))<0)
 		goto err_dev1;
-	if ((res=(s->codec.dev_mixer = register_sound_mixer(&es1371_mixer_fops, -1)) < 0))
+	if ((res=(s->codec.dev_mixer = register_sound_mixer(&es1371_mixer_fops, -1))) < 0)
 		goto err_dev2;
-	if ((res=(s->dev_dac = register_sound_dsp(&es1371_dac_fops, -1)) < 0))
+	if ((res=(s->dev_dac = register_sound_dsp(&es1371_dac_fops, -1))) < 0)
 		goto err_dev3;
-	if ((res=(s->dev_midi = register_sound_midi(&es1371_midi_fops, -1))<0 ))
+	if ((res=(s->dev_midi = register_sound_midi(&es1371_midi_fops, -1)))<0 )
 		goto err_dev4;
 #ifdef ES1371_DEBUG
 	/* initialize the debug proc device */

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-06-12  7:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-12  7:13 [patchset] Fix mishandling of error/exit patchs in 2.5 Ravikiran G Thirumalai
2003-06-12  7:14 ` [patchset] Fix mishandling of error/exit patchs in 2.5 -- 1/3 dpt_i2o Ravikiran G Thirumalai
2003-06-12  7:26 ` [patchset] Fix mishandling of error/exit patchs in 2.5 --2/3; jffs Ravikiran G Thirumalai
2003-06-12  7:27 ` [patchset] Fix mishandling of error/exit patchs in 2.5 --3/3 es1371 Ravikiran G Thirumalai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®