Commit 58a5b0a6346b71bf01f0d49cfcc91d3225a373aa

Authored by Zoran Marceta
Committed by Greg Kroah-Hartman
1 parent 3b92847425

[PATCH] usbfs: use the correct signal number for disconnection

usbfs stores the wrong signal number in the siginfo structure used for
notifying user programs about device disconnect.  This patch (as726)
fixes it.

From: Zoran Marceta <Zoran.Marceta@micronasnit.com>
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/usb/core/inode.c
... ... @@ -695,7 +695,7 @@
695 695 wake_up_all(&ds->wait);
696 696 list_del_init(&ds->list);
697 697 if (ds->discsignr) {
698   - sinfo.si_signo = SIGPIPE;
  698 + sinfo.si_signo = ds->discsignr;
699 699 sinfo.si_errno = EPIPE;
700 700 sinfo.si_code = SI_ASYNCIO;
701 701 sinfo.si_addr = ds->disccontext;