login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
August
»
30
Re: [PATCH 13/30] net: Don't do pointless kmalloc return value casts in zd1211 driver
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Daniel Drake <dsd@...>
To: Jesper Juhl <jesper.juhl@...>
Cc: Linux Kernel Mailing List <linux-kernel@...>, <netdev@...>, David S. Miller <davem@...>, Ulrich Kunitz <kune@...>, <linux-wireless@...>
Subject:
Re: [PATCH 13/30] net: Don't do pointless kmalloc return value casts in zd1211 driver
Date: Thursday, August 30, 2007 - 7:47 pm
Jesper Juhl wrote:
quoted text
> What would be wrong in applying my patch that removes the cast of the > kmalloc() return value and then also remove the "__nocast" here?
We use it as a safety measure when coding. For example the write register function takes an address and a value. We got one of these the wrong way round once, and had a non-obvious bug. nocast and sparse helps us prevent this. Daniel -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
Re: [PATCH 13/30] net: Don't do pointless kmalloc return val...
, Daniel Drake
, (Thu Aug 30, 1:54 pm)
Re: [PATCH 13/30] net: Don't do pointless kmalloc return val...
, Jesper Juhl
, (Thu Aug 30, 4:20 pm)
Re: [PATCH 13/30] net: Don't do pointless kmalloc return val...
, Herbert Xu
, (Fri Aug 31, 5:30 am)
Re: [PATCH 13/30] net: Don't do pointless kmalloc return val...
, Daniel Drake
, (Thu Aug 30, 7:47 pm)
Re: [PATCH 13/30] net: Don't do pointless kmalloc return val...
, Joe Perches
, (Thu Aug 30, 6:19 pm)
[PATCH] Don't needlessly initialize variable to NULL in zd_c...
, Jesper Juhl
, (Thu Aug 30, 6:30 pm)
Re: [PATCH] Don't needlessly initialize variable to NULL in ...
, Randy Dunlap
, (Thu Aug 30, 6:42 pm)
Re: [PATCH] Don't needlessly initialize variable to NULL in ...
, Jesper Juhl
, (Thu Aug 30, 7:04 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Vladislav Bolkhovitin
Re: Integration of SCST in the mainstream Linux kernel
Greg Kroah-Hartman
[PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Martin Michlmayr
Network slowdown due to CFS
git
:
linux-netdev
:
Paweł Staszewski
rib_trie / Fix inflate_threshold_root. Now=15 size=11 bits
David Miller
[GIT]: Networking
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
3 users
and
804 guests
online.
Online users
mator
vv_ivango
muebcass908
Syndicate