mirror of
https://github.com/torvalds/linux.git
synced 2026-11-26 08:23:17 +00:00
alloc_tty_driver was always assumed to succeed. Add code to check the return value and return -ENOMEM if alloc_tty_driver fails. Reported-by: Fengguang Wu <[email protected]> Signed-off-by: Bill Pemberton <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
The user space code to work with this driver is located at https://github.com/wfp5p/dgrp-utils