[PATCH] usbip cleanup: Changed current->comm to get_task_comm

From: Himanshu Chauhan
Date: Fri Jan 22 2010 - 23:45:00 EST


Signed-off-by: Himanshu Chauhan <himanshu@xxxxxxxxxxxxxxxx>
---
drivers/staging/usbip/usbip_common.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/usbip/usbip_common.c b/drivers/staging/usbip/usbip_common.c
index 3367a52..30fdf9d 100644
--- a/drivers/staging/usbip/usbip_common.c
+++ b/drivers/staging/usbip/usbip_common.c
@@ -443,6 +443,7 @@ int usbip_xmit(int send, struct socket *sock, char *buf,
struct msghdr msg;
struct kvec iov;
int total = 0;
+ char name[sizeof(current->comm)];

/* for blocks of if (usbip_dbg_flag_xmit) */
char *bp = buf;
@@ -456,11 +457,12 @@ int usbip_xmit(int send, struct socket *sock, char *buf,
return -EINVAL;
}

+ get_task_comm(name, current);

if (usbip_dbg_flag_xmit) {
if (send) {
if (!in_interrupt())
- printk(KERN_DEBUG "%-10s:", current->comm);
+ printk(KERN_DEBUG "%-10s:", name);
else
printk(KERN_DEBUG "interrupt :");

@@ -507,7 +509,7 @@ int usbip_xmit(int send, struct socket *sock, char *buf,
if (usbip_dbg_flag_xmit) {
if (!send) {
if (!in_interrupt())
- printk(KERN_DEBUG "%-10s:", current->comm);
+ printk(KERN_DEBUG "%-10s:", name);
else
printk(KERN_DEBUG "interrupt :");

--
1.6.3.3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/