Repository navigation
Commit 22dd483
Fix computation of SKB size for quota messages
Fix computation of size of skb needed for quota message. We should use
netlink provided functions and not just an ad-hoc number. Also don't print
the return value from nla_put_foo() as it is always -1.
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>1 parent b886290 commit 22dd483
1 file changed
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
895 | 895 | | |
896 | 896 | | |
897 | 897 | | |
898 | | - | |
899 | | - | |
900 | | - | |
901 | 898 | | |
902 | 899 | | |
903 | 900 | | |
| |||
914 | 911 | | |
915 | 912 | | |
916 | 913 | | |
| 914 | + | |
| 915 | + | |
917 | 916 | | |
918 | 917 | | |
919 | 918 | | |
920 | 919 | | |
921 | | - | |
| 920 | + | |
922 | 921 | | |
923 | 922 | | |
924 | 923 | | |
| |||
959 | 958 | | |
960 | 959 | | |
961 | 960 | | |
962 | | - | |
| 961 | + | |
963 | 962 | | |
964 | 963 | | |
965 | 964 | | |
| |||
0 commit comments