Repository navigation
Commit fa9ba3a
mm: ksize() should silently accept a NULL pointer
Other mm routines such as kfree() and kzfree() silently do the right thing
if passed a NULL pointer, so ksize() should do the same.
Signed-off-by: William Kucharski <william.kucharski@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Cc: Christoph Lameter <cl@linux.com>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: David Rientjes <rientjes@google.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Link: http://lkml.kernel.org/r/20200616225409.4670-1-william.kucharski@oracle.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>1 parent 453431a commit fa9ba3a
1 file changed
Lines changed: 5 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1681 | 1681 | | |
1682 | 1682 | | |
1683 | 1683 | | |
1684 | | - | |
| 1684 | + | |
1685 | 1685 | | |
1686 | | - | |
1687 | | - | |
| 1686 | + | |
1688 | 1687 | | |
1689 | 1688 | | |
1690 | 1689 | | |
| |||
1744 | 1743 | | |
1745 | 1744 | | |
1746 | 1745 | | |
1747 | | - | |
1748 | | - | |
1749 | 1746 | | |
1750 | | - | |
| 1747 | + | |
| 1748 | + | |
1751 | 1749 | | |
1752 | 1750 | | |
1753 | 1751 | | |
| |||
1770 | 1768 | | |
1771 | 1769 | | |
1772 | 1770 | | |
1773 | | - | |
1774 | | - | |
1775 | 1771 | | |
1776 | 1772 | | |
1777 | 1773 | | |
| |||
1785 | 1781 | | |
1786 | 1782 | | |
1787 | 1783 | | |
1788 | | - | |
| 1784 | + | |
1789 | 1785 | | |
1790 | 1786 | | |
1791 | 1787 | | |
| |||
0 commit comments