Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

[PATCH 2.6.19-rc4 1/3] ehea: Nullpointer dereferencation fix

 
   Soft32 Home -> Linux -> Kernel RSS
Next:  [PATCH 5/8] resend cciss: disable DMA prefetch on..  
Author Message
Thomas Klein

External


Since: Nov 03, 2006
Posts: 28



(Msg. 1) Posted: Fri Nov 03, 2006 11:50 am
Post subject: [PATCH 2.6.19-rc4 1/3] ehea: Nullpointer dereferencation fix
Archived from groups: linux>kernel (more info?)

Fix: Must check for nullpointer before dereferencing it - not afterwards.

Signed-off-by: Thomas Klein <tklein DeleteThis @de.ibm.com>
---

diff -Nurp git.netdev-2.6.base/drivers/net/ehea/ehea_qmr.c git.netdev-2.6/drivers/net/ehea/ehea_qmr.c
--- git.netdev-2.6.base/drivers/net/ehea/ehea_qmr.c 2006-11-03 14:19:51.000000000 +0100
+++ git.netdev-2.6/drivers/net/ehea/ehea_qmr.c 2006-11-03 14:27:53.000000000 +0100
@@ -209,11 +209,11 @@ int ehea_destroy_cq(struct ehea_cq *cq)
{
u64 adapter_handle, hret;

- adapter_handle = cq->adapter->handle;
-
if (!cq)
return 0;

+ adapter_handle = cq->adapter->handle;
+
/* deregister all previous registered pages */
hret = ehea_h_free_resource(adapter_handle, cq->fw_handle);
if (hret != H_SUCCESS) {
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo DeleteThis @vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to top
Login to vote
Jeff Garzik

External


Since: Nov 04, 2006
Posts: 936



(Msg. 2) Posted: Mon Nov 06, 2006 3:00 am
Post subject: Re: [PATCH 2.6.19-rc4 1/3] ehea: Nullpointer dereferencation fix [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

applied 1-3


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo.RemoveThis@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to top
Login to vote
Display posts from previous:   
Related Topics:
[PATCH 2.6.20-rc5 1/7] ehea: Fixed wrong dereferencation - Not only check the pointer against 0 but also the dereferenced value Signed-off-by: Thomas Klein <tklein@de.ibm.com...

[PATCH 2.6.20-rc5 7/7] ehea: Fixed possible nullpointer ac.. - Fixed possible nullpointer access in event queue processing Signed-off-by: Thomas Klein <tklein@de.ibm.com> --- ...

[PATCH 2/2] ehea: code cleanup - This patch includes: - code cleanup related to resource management - extended error data gathering for resource..

[PATCH 1/2] ehea: Whitespace cleanup - This patch fixes several whitespace issues. Signed-off-by: Thomas Klein <tklein@de.ibm.com> --- diff -Nurp -X....

[PATCH] ehea: Whitespace cleanup - This patch fixes several whitespace issues. Signed-off-by: Jan-Bernd Themann <themann@de.ibm.com> --- diff --g...

[PATCH] eHEA: net_poll support - net_poll support for eHEA added Signed-off-by: Jan-Bernd Themann <themann@de.ibm.com> --- drivers/net/ehea/eh...
       Soft32 Home -> Linux -> Kernel All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
  Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]