Commit dbdcc90
dm ioctl: log an error if the ioctl structure is corrupted
This will help triage bugs when userspace is passing invalid ioctl
structure to the kernel.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
[snitzer: log errors using DMERR instead of DMWARN]
Signed-off-by: Mike Snitzer <snitzer@kernel.org>1 parent 3f72821 commit dbdcc90
1 file changed
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
891 | 891 | | |
892 | 892 | | |
893 | 893 | | |
894 | | - | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
895 | 897 | | |
| 898 | + | |
896 | 899 | | |
897 | 900 | | |
898 | 901 | | |
899 | 902 | | |
900 | 903 | | |
901 | | - | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
902 | 907 | | |
| 908 | + | |
903 | 909 | | |
904 | 910 | | |
905 | 911 | | |
| |||
1851 | 1857 | | |
1852 | 1858 | | |
1853 | 1859 | | |
1854 | | - | |
| 1860 | + | |
| 1861 | + | |
| 1862 | + | |
1855 | 1863 | | |
| 1864 | + | |
1856 | 1865 | | |
1857 | 1866 | | |
1858 | 1867 | | |
| |||
0 commit comments