From: Oleg Nesterov Date: Wed, 9 May 2007 09:34:35 +0000 (-0700) Subject: usbatm_heavy_init: don't use CLONE_SIGHAND X-Git-Tag: 2.1b_release~27853 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b8a124da9261873e3e3541898d5c46d273afee34;p=platform%2Fkernel%2Fkernel-mfld-blackbay.git usbatm_heavy_init: don't use CLONE_SIGHAND usbatm_do_heavy_init() calls allow_signal() which plays with parent process's ->sighand. Signed-off-by: Oleg Nesterov Acked-by: Duncan Sands Cc: Greg KH Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/usb/atm/usbatm.c b/drivers/usb/atm/usbatm.c index b082d95..11e9b15 100644 --- a/drivers/usb/atm/usbatm.c +++ b/drivers/usb/atm/usbatm.c @@ -1033,7 +1033,7 @@ static int usbatm_do_heavy_init(void *arg) static int usbatm_heavy_init(struct usbatm_data *instance) { - int ret = kernel_thread(usbatm_do_heavy_init, instance, CLONE_KERNEL); + int ret = kernel_thread(usbatm_do_heavy_init, instance, CLONE_FS | CLONE_FILES); if (ret < 0) { usb_err(instance, "%s: failed to create kernel_thread (%d)!\n", __func__, ret);