If "nd->nd_vpd_len" is less than 512 then the last part of the "vpd.vpd_data" has uninitialized stack information. We need to clear it before copying the buffer to user space. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
|---|---|---|
| .. | ||
| dgrp_common.c | ||
| dgrp_common.h | ||
| dgrp_dpa_ops.c | ||
| dgrp_driver.c | ||
| dgrp_mon_ops.c | ||
| dgrp_net_ops.c | ||
| dgrp_ports_ops.c | ||
| dgrp_specproc.c | ||
| dgrp_sysfs.c | ||
| dgrp_tty.c | ||
| digirp.h | ||
| drp.h | ||
| Kconfig | ||
| Makefile | ||
| README | ||
| TODO | ||
The user space code to work with this driver is located at https://github.com/wfp5p/dgrp-utils