X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fbluetooth%2Fbt3c_cs.c;h=d2a0add19cc88a52ddcd703495fdcf0584b00022;hb=89de09a9ba9ce293228b1f1aa3c68b5af33a70ce;hp=2e0338d80f32c1db8ba8e2f1a4e524e08298aeb6;hpb=826509f8110049663799bc20f2b5b6170e2f78ca;p=linux-2.6 diff --git a/drivers/bluetooth/bt3c_cs.c b/drivers/bluetooth/bt3c_cs.c index 2e0338d80f..d2a0add19c 100644 --- a/drivers/bluetooth/bt3c_cs.c +++ b/drivers/bluetooth/bt3c_cs.c @@ -671,10 +671,9 @@ static dev_link_t *bt3c_attach(void) int ret; /* Create new info device */ - info = kmalloc(sizeof(*info), GFP_KERNEL); + info = kzalloc(sizeof(*info), GFP_KERNEL); if (!info) return NULL; - memset(info, 0, sizeof(*info)); link = &info->link; link->priv = info;