| From | Subject | Date |
|---|---|---|
| Sunil Mushran | Re: [patch -next] ocfs2/cluster: dereferencing before ch ...
Acked-by: Sunil Mushran<sunil.mushran@oracle.com>
--
| Jan 3, 10:54 am 2011 |
| Dan Carpenter | [patch -next] ocfs2/cluster: dereferencing before checki ...
In the original code, we dereferenced "nst" before checking that it was
non-NULL. I moved the check forward and pulled the code in an indent
level.
Signed-off-by: Dan Carpenter <error27@gmail.com>
diff --git a/fs/ocfs2/cluster/netdebug.c b/fs/ocfs2/cluster/netdebug.c
index 61df89c..3a58359 100644
--- a/fs/ocfs2/cluster/netdebug.c
+++ b/fs/ocfs2/cluster/netdebug.c
@@ -133,36 +133,37 @@ static int nst_seq_show(struct seq_file *seq, void *v)
spin_lock(&o2net_debug_lock);
nst = ...
| Jan 2, 11:00 pm 2011 |
| Dan Carpenter | [patch] [SCSI] scsi_dh: potential null dereference in sc ...
We assumed "sdev" could be NULL ealier, so lets check it here as well.
Signed-off-by: Dan Carpenter <error27@gmail.com>
diff --git a/drivers/scsi/device_handler/scsi_dh.c b/drivers/scsi/device_handler/scsi_dh.c
index b837c5b..ff340e3 100644
--- a/drivers/scsi/device_handler/scsi_dh.c
+++ b/drivers/scsi/device_handler/scsi_dh.c
@@ -446,7 +446,7 @@ int scsi_dh_activate(struct request_queue *q, activate_complete fn, void *data)
sdev->sdev_state == SDEV_CANCEL ||
sdev->sdev_state == ...
| Jan 2, 10:48 pm 2011 |
| Dan Carpenter | [patch 2/2] Staging: tm6000: silence Sparse warning "dub ...
Bitwise and logical or are the equivalent here, so this doesn't affect
runtime, but logical or was intended. The original code causes a
warning in Sparse: "warning: dubious: !x | !y"
Signed-off-by: Dan Carpenter <error27@gmail.com>
diff --git a/drivers/staging/tm6000/tm6000-input.c b/drivers/staging/tm6000/tm6000-input.c
index aee5e85..dae2f1f 100644
--- a/drivers/staging/tm6000/tm6000-input.c
+++ b/drivers/staging/tm6000/tm6000-input.c
@@ -376,7 +376,7 @@ int tm6000_ir_init(struct ...
| Jan 2, 10:47 pm 2011 |
| Dan Carpenter | [patch -next] ath5k: ath5k_eeprom_mode_from_channel() re ...
ath5k_eeprom_mode_from_channel() returns -1 on error but we're storing
the result in "ee_mode" which is an unsigned char. This breaks the
error handling. This patch makes "ee_mode" an int.
Signed-off-by: Dan Carpenter <error27@gmail.com>
diff --git a/drivers/net/wireless/ath/ath5k/phy.c b/drivers/net/wireless/ath/ath5k/phy.c
index 9306d5f..78c26fd 100644
--- a/drivers/net/wireless/ath/ath5k/phy.c
+++ b/drivers/net/wireless/ath/ath5k/phy.c
@@ -1916,7 +1916,8 @@ ...
| Jan 2, 10:46 pm 2011 |
| Dan Carpenter | [patch 1/2] Staging: tm6000: check usb_alloc_urb() return
usb_alloc_urb() can return NULL so check for that and return
-ENOMEM if it happens.
Signed-off-by: Dan Carpenter <error27@gmail.com>
diff --git a/drivers/staging/tm6000/tm6000-input.c b/drivers/staging/tm6000/tm6000-input.c
index 21e7da4..aee5e85 100644
--- a/drivers/staging/tm6000/tm6000-input.c
+++ b/drivers/staging/tm6000/tm6000-input.c
@@ -313,6 +313,8 @@ int tm6000_ir_int_start(struct tm6000_core *dev)
return -ENODEV;
ir->int_urb = usb_alloc_urb(0, GFP_KERNEL);
+ if ...
| Jan 2, 10:44 pm 2011 |
| Dan Carpenter | Re: [PATCHv4 0/4] staging: keucr: Use memcmp() & memcpy( ...
Looks good. v1 made me grumpy. v2 was ok. v4 is what all patches
should look like. :)
Acked-by: Dan Carpenter <error27@gmail.com>
--
| Jan 2, 10:34 pm 2011 |
| Marcin Slusarz | Re: [PATCH 2/4] staging: keucr: Use memcpy() instead cus ...
Now it looks good.
Reviewed-by: Marcin Slusarz <marcin.slusarz@gmail.com>
--
| Jan 3, 9:11 am 2011 |
| Dan Carpenter | Re: [patch -next] lockd: double unlock in next_host_state()
No. for_each_host() is a nested for loop, so a break would only take
you out of the inner most loop.
regards,
dan carpenter
--
| Jan 3, 9:34 am 2011 |
| Chuck Lever | Re: [patch -next] lockd: double unlock in next_host_state()
Would it also make sense to replace the "goto out;" with a "break;" ?
--
Chuck Lever
chuck[dot]lever[at]oracle[dot]com
--
| Jan 3, 8:59 am 2011 |
| previous day | today | next day |
|---|---|---|
| January 2, 2011 | January 3, 2011 | January 4, 2011 |
