diff options
author | Wen Yaxng <wen.yang99@zte.com.cn> | 2017-11-08 04:55:03 +0300 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2017-11-13 01:25:39 +0300 |
commit | 6714796edcce27f7a1845e2f79783cd51bb4799b (patch) | |
tree | 9013b662811f2604112e1aa7f9621b6962e98ac4 /kernel/irq/irqdomain.c | |
parent | d00a08cf9ee986ad6689ce8c6fd176aff679c106 (diff) | |
download | linux-6714796edcce27f7a1845e2f79783cd51bb4799b.tar.xz |
genirq/proc: Return proper error code when irq_set_affinity() fails
write_irq_affinity() returns the number of written bytes, which means
success, unconditionally whether the actual irq_set_affinity() call
succeeded or not.
Add proper error handling and pass the error code returned from
irq_set_affinity() back to user space in case of failure.
[ tglx: Fixed coding style and massaged changelog ]
Signed-off-by: Wen Yang <wen.yang99@zte.com.cn>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Jiang Biao <jiang.biao2@zte.com.cn>
Cc: zhong.weidong@zte.com.cn
Link: https://lkml.kernel.org/r/1510106103-184761-1-git-send-email-wen.yang99@zte.com.cn
Diffstat (limited to 'kernel/irq/irqdomain.c')
0 files changed, 0 insertions, 0 deletions