Re: [PATCH BUGFIX -v2 -rc4] Smack: Respect 'unlabeled' netlabel mode

From: Tetsuo Handa
Date: Fri May 30 2008 - 19:11:16 EST


Hello.

Ahmed S. Darwish wrote:
> default:
> + mutex_lock(&smack_ambient_lock);
> + nlsp->domain = kstrdup(smack_net_ambient, GFP_ATOMIC);
> + mutex_unlock(&smack_ambient_lock);
> +
> + nlsp->flags = NETLBL_SECATTR_DOMAIN;
> break;

Getting a mutex lock might sleep, so why not use GFP_KERNEL ?
--
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/