mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
Forgot to remove the old g_malloc() call when I split it.
Spotted by: dima
This commit is contained in:
parent
673a70f57f
commit
c4269c63a2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=92474
@ -65,8 +65,6 @@ g_slice_init(unsigned nslice, unsigned scsize)
|
||||
{
|
||||
struct g_slicer *gsp;
|
||||
|
||||
gsp = g_malloc(sizeof *gsp + nslice * sizeof(struct g_slice) + scsize,
|
||||
M_WAITOK | M_ZERO);
|
||||
gsp = g_malloc(sizeof *gsp, M_WAITOK | M_ZERO);
|
||||
gsp->softc = g_malloc(scsize, M_WAITOK | M_ZERO);
|
||||
gsp->slices = g_malloc(nslice * sizeof(struct g_slice), M_WAITOK | M_ZERO);
|
||||
|
Loading…
Reference in New Issue
Block a user