diff options
author | Joonwoo Park <joonwpark81@gmail.com> | 2008-07-08 02:38:40 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-07-08 02:38:40 -0700 |
commit | dde77e604497dada6f224a685278dfb27747ae52 (patch) | |
tree | d4f43497f985e1b8417960640f4be8fe1fc78410 /include/linux/textsearch.h | |
parent | 43138833ee9af07e865a4dcbfe81684c9c2f2262 (diff) | |
download | linux-dde77e604497dada6f224a685278dfb27747ae52.tar.gz linux-dde77e604497dada6f224a685278dfb27747ae52.tar.bz2 linux-dde77e604497dada6f224a685278dfb27747ae52.zip |
textsearch: convert kmalloc + memset to kzalloc
convert kmalloc + memset to kzalloc for alloc_ts_config
Signed-off-by: Joonwoo Park <joonwpark81@gmail.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/textsearch.h')
-rw-r--r-- | include/linux/textsearch.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/textsearch.h b/include/linux/textsearch.h index 6c34cf28b7aa..d9a85d616385 100644 --- a/include/linux/textsearch.h +++ b/include/linux/textsearch.h @@ -162,11 +162,10 @@ static inline struct ts_config *alloc_ts_config(size_t payload, { struct ts_config *conf; - conf = kmalloc(TS_PRIV_ALIGN(sizeof(*conf)) + payload, gfp_mask); + conf = kzalloc(TS_PRIV_ALIGN(sizeof(*conf)) + payload, gfp_mask); if (conf == NULL) return ERR_PTR(-ENOMEM); - memset(conf, 0, TS_PRIV_ALIGN(sizeof(*conf)) + payload); return conf; } |